summaryrefslogtreecommitdiff
path: root/dix/gc.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/gc.c
parent1cb84768f376b477a08a558854609b0743f2bd29 (diff)
devPrivates rework: properly free devPrivates on compatibility structures,
excluding pixmap.
Diffstat (limited to 'dix/gc.c')
-rw-r--r--dix/gc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/gc.c b/dix/gc.c
index 7a76dd99d..e7c48492f 100644
--- a/dix/gc.c
+++ b/dix/gc.c
@@ -61,6 +61,7 @@ SOFTWARE.
#include "scrnintstr.h"
#include "region.h"
+#include "privates.h"
#include "dix.h"
#include <assert.h>
@@ -903,6 +904,7 @@ FreeGC(pointer value, XID gid)
(*pGC->funcs->DestroyGC) (pGC);
if (pGC->dash != DefaultDash)
xfree(pGC->dash);
+ dixFreePrivates(*DEVPRIV_PTR(pGC));
xfree(pGC);
return(Success);
}