From 91beeee05f88eed10ab0fd97dc625e96cb7763ba Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 13 Oct 2009 16:27:30 +1100 Subject: [PATCH] DIX: Reset window properties when freeing them This enables us to reliably inspect properties when destroying windows. Signed-off-by: Daniel Stone Reviewed-by: Fernando Carrijo --- dix/property.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dix/property.c b/dix/property.c index 1d4332a58..a1ae5305d 100644 --- a/dix/property.c +++ b/dix/property.c @@ -424,6 +424,9 @@ DeleteAllWindowProperties(WindowPtr pWin) dixFreeObjectWithPrivates(pProp, PRIVATE_PROPERTY); pProp = pNextProp; } + + if (pWin->optional) + pWin->optional->userProps = NULL; } static int