summaryrefslogtreecommitdiff
path: root/hw/kdrive
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-02-15 16:14:57 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2007-02-15 16:14:57 +0200
commit0f6dd4aea6176507dbe1c90c950d332fecbcaacb (patch)
treec9ac6176ca979e0160b4284ef1bc11ba2b3e0993 /hw/kdrive
parent9ecf79ca0111dd899ca88dd54156f71013220fcc (diff)
kdrive/ephyr: free screen struct
Free screen->driver on screenFini, instead of just leaking it.
Diffstat (limited to 'hw/kdrive')
-rw-r--r--hw/kdrive/ephyr/ephyr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/kdrive/ephyr/ephyr.c b/hw/kdrive/ephyr/ephyr.c
index 2ca51c30b..e8001df73 100644
--- a/hw/kdrive/ephyr/ephyr.c
+++ b/hw/kdrive/ephyr/ephyr.c
@@ -675,6 +675,8 @@ ephyrRestore (KdCardInfo *card)
void
ephyrScreenFini (KdScreenInfo *screen)
{
+ xfree(screen->driver);
+ screen->driver = NULL;
}
/*