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:
parent
36ebdd3616
commit
91beeee05f
|
@ -424,6 +424,9 @@ DeleteAllWindowProperties(WindowPtr pWin)
|
|||
dixFreeObjectWithPrivates(pProp, PRIVATE_PROPERTY);
|
||||
pProp = pNextProp;
|
||||
}
|
||||
|
||||
if (pWin->optional)
|
||||
pWin->optional->userProps = NULL;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue
Block a user