mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
Check for clientGone before sending events from XFixes (bug #1753).
Freeing resources during client closedown can cause cursor changes which attempt to send cursor events through the XFixes extension; a client in the process of closing down has no file to send events to, causing a crash when this path is hit.
This commit is contained in:
@@ -78,7 +78,9 @@ XFixesSelectionCallback (CallbackListPtr *callbacks, pointer data, pointer args)
|
||||
}
|
||||
for (e = selectionEvents; e; e = e->next)
|
||||
{
|
||||
if (e->selection == selection->selection && (e->eventMask & eventMask))
|
||||
if (e->selection == selection->selection &&
|
||||
(e->eventMask & eventMask) &&
|
||||
!e->pClient->clientGone)
|
||||
{
|
||||
xXFixesSelectionNotifyEvent ev;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user