summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-09-23 01:44:12 (GMT)
committerPeter Hutterer <peter.hutterer@who-t.net>2009-09-24 22:17:02 (GMT)
commitfd913136732ff14a0484ca28f60ac1fbf49be81d (patch)
tree06f9e673b71601f6d5e21362d7dac69abbe7f929
parent6ee796e9bb4e46782b50a69c7b4fa5b49576f139 (diff)
dix: plug memory leak in DeviceEnterLeaveEvents.
'event' must be freed before exiting. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--dix/events.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dix/events.c b/dix/events.c
index a79cf6d..d60b8a5 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -4414,10 +4414,12 @@ DeviceEnterLeaveEvent(
filter, grab);
} else {
if (!GetWindowXI2Mask(mouse, pWin, (xEvent*)event))
- return;
+ goto out;
DeliverEventsToWindow(mouse, pWin, (xEvent*)event, 1, filter,
NullGrab);
}
+
+out:
xfree(event);
}