summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}