DIX: Reset window properties when freeing them

This enables us to reliably inspect properties when destroying windows.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Fernando Carrijo <fcarrijo@freedesktop.org>
This commit is contained in:
Daniel Stone 2009-10-13 16:27:30 +11:00
parent 36ebdd3616
commit 91beeee05f

View File

@ -424,6 +424,9 @@ DeleteAllWindowProperties(WindowPtr pWin)
dixFreeObjectWithPrivates(pProp, PRIVATE_PROPERTY);
pProp = pNextProp;
}
if (pWin->optional)
pWin->optional->userProps = NULL;
}
static int