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,
excluding pixmap.
This commit is contained in:
parent
1cb84768f3
commit
63e46e4fc3
7 changed files with 15 additions and 0 deletions
2
dix/gc.c
2
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue