xorg: fix a crash when disconnecting
This commit is contained in:
parent
293c404a12
commit
66f8a0bf25
@ -259,6 +259,11 @@ rdpClientConDisconnect(rdpPtr dev, rdpClientCon *clientCon)
|
||||
}
|
||||
rdpRegionDestroy(clientCon->dirtyRegion);
|
||||
rdpRegionDestroy(clientCon->shmRegion);
|
||||
if (clientCon->updateTimer != NULL)
|
||||
{
|
||||
TimerCancel(clientCon->updateTimer);
|
||||
TimerFree(clientCon->updateTimer);
|
||||
}
|
||||
g_free(clientCon);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user