xorg: fix a crash when disconnecting

ulab-next-nosound
Jay Sorg 10 years ago
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…
Cancel
Save