devPrivates rework: properly free devPrivates on compatibility structures,

type pixmap.  Requires ddx'es to call the free function from DestroyPixmap.
This commit is contained in:
Eamon Walsh 2007-04-05 14:18:05 -04:00 • committed by Eamon Walsh
commit 5ad562565a
12 changed files with 20 additions and 1 deletions

View file

@ -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;
}