mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-12 07:40:28 +01:00
dix: plug memory leak in DeviceEnterLeaveEvents.
'event' must be freed before exiting. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6ee796e9bb
commit
fd91313673
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue