mi: Sync: Don't free managed screen private

misync allocates space for its screen private with
dixRegisterPrivateKey, which means it doesn't have to free it at
CloseScreen time; doing so will, in fact, result in a crash.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: James Jones <jajones@nvidia.com>
Acked-by: Tiago Vignatti <tiago.vignatti@nokia.com>
This commit is contained in:
Daniel Stone 2010-12-17 16:48:45 +00:00 committed by Keith Packard
parent 44adb31bfe
commit 469d5bf8b7
1 changed files with 0 additions and 1 deletions

View File

@ -167,7 +167,6 @@ SyncCloseScreen (int i, ScreenPtr pScreen)
SyncScreenPrivPtr pScreenPriv = SYNC_SCREEN_PRIV(pScreen);
pScreen->CloseScreen = pScreenPriv->CloseScreen;
free(pScreenPriv);
return (*pScreen->CloseScreen) (i, pScreen);
}