devPrivates rework: properly free devPrivates on compatibility structures,

excluding pixmap.
This commit is contained in:
Eamon Walsh
2007-04-04 15:59:51 -04:00
committed by Eamon Walsh
parent 1cb84768f3
commit 63e46e4fc3
7 changed files with 15 additions and 0 deletions

View File

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