mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-29 21:46:40 +00:00
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:
parent
1d550bb2c5
commit
5ad562565a
12 changed files with 20 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue