summaryrefslogtreecommitdiff
path: root/cfb
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-04-05 14:18:05 -0400
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>2007-04-05 14:18:05 -0400
commit5ad562565ac8ef9257da3afb0de1ae4f90f80fe9 (patch)
treedb1cc6bbc7f1219c74fb1443769c49cb171d53a8 /cfb
parent1d550bb2c5cb5b3e588f0e0b68a421dc1cb8bd7c (diff)
devPrivates rework: properly free devPrivates on compatibility structures,
type pixmap. Requires ddx'es to call the free function from DestroyPixmap.
Diffstat (limited to 'cfb')
-rw-r--r--cfb/cfb.h1
-rw-r--r--cfb/cfbpixmap.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/cfb/cfb.h b/cfb/cfb.h
index 8c682ae8d..15332ff97 100644
--- a/cfb/cfb.h
+++ b/cfb/cfb.h
@@ -37,6 +37,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "colormap.h"
#include "miscstruct.h"
#include "servermd.h"
+#include "privates.h"
#include "windowstr.h"
#include "mfb.h"
#undef PixelType
diff --git a/cfb/cfbpixmap.c b/cfb/cfbpixmap.c
index 6fdf3eae6..ed01316ed 100644
--- a/cfb/cfbpixmap.c
+++ b/cfb/cfbpixmap.c
@@ -107,6 +107,7 @@ cfbDestroyPixmap(pPixmap)
{
if(--pPixmap->refcnt)
return TRUE;
+ dixFreePrivates(*DEVPRIV_PTR(pPixmap));
xfree(pPixmap);
return TRUE;
}