xorg: fix a crash when disconnecting

This commit is contained in:
Jay Sorg 2014-06-18 20:13:18 -07:00
parent 293c404a12
commit 66f8a0bf25

View File

@ -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;
}