summaryrefslogtreecommitdiff
path: root/dix/main.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-04-04 15:59:51 -0400
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>2007-04-04 15:59:51 -0400
commit63e46e4fc3e98751f2edbed9c79ef3d5dc2dadc6 (patch)
tree551ef7b55d753640114999b3b0a2c35fc973ba55 /dix/main.c
parent1cb84768f376b477a08a558854609b0743f2bd29 (diff)
devPrivates rework: properly free devPrivates on compatibility structures,
excluding pixmap.
Diffstat (limited to 'dix/main.c')
-rw-r--r--dix/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dix/main.c b/dix/main.c
index 852cbcb62..b5db193ba 100644
--- a/dix/main.c
+++ b/dix/main.c
@@ -103,6 +103,7 @@ Equipment Corporation.
#include "site.h"
#include "dixfont.h"
#include "extnsionst.h"
+#include "privates.h"
#ifdef XPRINT
#include "DiPrint.h"
#endif
@@ -496,6 +497,7 @@ main(int argc, char *argv[], char *envp[])
FreeAuditTimer();
+ dixFreePrivates(*DEVPRIV_PTR(serverClient));
xfree(serverClient->devPrivates);
serverClient->devPrivates = NULL;
@@ -801,6 +803,7 @@ FreeScreen(ScreenPtr pScreen)
xfree(pScreen->WindowPrivateSizes);
xfree(pScreen->GCPrivateSizes);
xfree(pScreen->PixmapPrivateSizes);
+ dixFreePrivates(*DEVPRIV_PTR(pScreen));
xfree(pScreen->devPrivates);
xfree(pScreen);
}