summaryrefslogtreecommitdiff
path: root/src/vmmouse.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-02-01 11:52:53 +1000
committerZack Rusin <zackr@vmware.com>2013-02-07 18:50:34 -0800
commit8cb6254ad3068537e74faaf80b9e346e525ea92d (patch)
tree5bf1bbe3a4197d7cfe3607572dd4e8885bb65cf9 /src/vmmouse.c
parenta2e4aa9d2002dad6e976d9e4d3f129ad3127be81 (diff)
Free the vmmouse data on UnInit
xf86DeleteInput() will free pInfo->private, but not the one hanging off that. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Tested-by: Zack Rusin <zackr@vmware.com>
Diffstat (limited to 'src/vmmouse.c')
-rw-r--r--src/vmmouse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vmmouse.c b/src/vmmouse.c
index bb450ff..cac8306 100644
--- a/src/vmmouse.c
+++ b/src/vmmouse.c
@@ -807,7 +807,14 @@ MouseCommonOptions(InputInfoPtr pInfo)
static void
VMMouseUnInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags)
{
+ MouseDevPtr pMse = pInfo->private;
+ VMMousePrivPtr mPriv = (VMMousePrivPtr)pMse->mousePriv;
+
xf86Msg(X_INFO, "VMWARE(0): VMMouseUnInit\n");
+
+ free(mPriv);
+
+ xf86DeleteInput(pInfo, flags);
}