From 8cb6254ad3068537e74faaf80b9e346e525ea92d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 1 Feb 2013 11:52:53 +1000 Subject: Free the vmmouse data on UnInit xf86DeleteInput() will free pInfo->private, but not the one hanging off that. Signed-off-by: Peter Hutterer Tested-by: Zack Rusin --- src/vmmouse.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/vmmouse.c') 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); } -- cgit v1.2.3