From 6828645916505a5925db5c2c2e816fee4e1050e5 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 4 Nov 2017 23:06:28 +0100 Subject: [PATCH] Xephyr: free driverPrivates on Fini Reviewed-by: Eric Engestrom --- hw/kdrive/ephyr/ephyr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/kdrive/ephyr/ephyr.c b/hw/kdrive/ephyr/ephyr.c index d064f51546..acf389c1db 100644 --- a/hw/kdrive/ephyr/ephyr.c +++ b/hw/kdrive/ephyr/ephyr.c @@ -1303,6 +1303,7 @@ MouseDisable(KdPointerInfo * pi) static void MouseFini(KdPointerInfo * pi) { + free(pi->driverPrivate); ephyrMouse = NULL; return; } @@ -1366,6 +1367,7 @@ EphyrKeyboardDisable(KdKeyboardInfo * ki) static void EphyrKeyboardFini(KdKeyboardInfo * ki) { + free(ki->driverPrivate); ephyrKbd = NULL; return; }