[PATCH xserver 2/5] Xephyr: free driverPrivates on Fini

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Sat Nov 4 22:06:28 UTC 2017


---
 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 d064f5154..acf389c1d 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;
 }
-- 
2.14.1.439.g647b9b4702



More information about the xorg-devel mailing list