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

@@ -63,6 +63,7 @@ SOFTWARE.
#include "scrnintstr.h"
#include "resource.h"
#include "windowstr.h"
#include "privates.h"
extern XID clientErrorValue;
extern int colormapPrivateCount;
@@ -474,6 +475,7 @@ FreeColormap (pointer value, XID mid)
}
}
dixFreePrivates(*DEVPRIV_PTR(pmap));
if (pmap->devPrivates)
xfree(pmap->devPrivates);