summaryrefslogtreecommitdiff
path: root/miext
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2010-12-17 16:48:45 +0000
committerKeith Packard <keithp@keithp.com>2010-12-27 09:43:56 -0800
commit469d5bf8b75038631c27edbb0f9cdf7d737fa233 (patch)
treeb71c896afe2245586cf3b32cc54dfa5d115ea336 /miext
parent44adb31bfece29260a9bbd9075c9212ebf00d24d (diff)
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>
Diffstat (limited to 'miext')
-rw-r--r--miext/sync/misync.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/miext/sync/misync.c b/miext/sync/misync.c
index bcc68a2bb..50226d9e3 100644
--- a/miext/sync/misync.c
+++ b/miext/sync/misync.c
@@ -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);
}