diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-04-05 14:18:05 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil> | 2007-04-05 14:18:05 -0400 |
commit | 5ad562565ac8ef9257da3afb0de1ae4f90f80fe9 (patch) | |
tree | db1cc6bbc7f1219c74fb1443769c49cb171d53a8 /hw/xnest/Pixmap.c | |
parent | 1d550bb2c5cb5b3e588f0e0b68a421dc1cb8bd7c (diff) |
devPrivates rework: properly free devPrivates on compatibility structures,
type pixmap. Requires ddx'es to call the free function from DestroyPixmap.
Diffstat (limited to 'hw/xnest/Pixmap.c')
-rw-r--r-- | hw/xnest/Pixmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xnest/Pixmap.c b/hw/xnest/Pixmap.c index 612df8dac..c4b8aa65e 100644 --- a/hw/xnest/Pixmap.c +++ b/hw/xnest/Pixmap.c @@ -24,6 +24,7 @@ is" without express or implied warranty. #include "regionstr.h" #include "gc.h" #include "servermd.h" +#include "privates.h" #include "mi.h" #include "Xnest.h" @@ -74,6 +75,7 @@ xnestDestroyPixmap(PixmapPtr pPixmap) if(--pPixmap->refcnt) return TRUE; XFreePixmap(xnestDisplay, xnestPixmap(pPixmap)); + dixFreePrivates(*DEVPRIV_PTR(pPixmap)); xfree(pPixmap); return TRUE; } |