diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-09-23 11:44:12 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-09-25 08:17:02 +1000 |
commit | fd913136732ff14a0484ca28f60ac1fbf49be81d (patch) | |
tree | 06f9e673b71601f6d5e21362d7dac69abbe7f929 | |
parent | 6ee796e9bb4e46782b50a69c7b4fa5b49576f139 (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dix/events.c b/dix/events.c index a79cf6d2f..d60b8a534 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); } |