diff options
author | Daniel Stone <daniel@fooishbar.org> | 2009-10-13 16:27:30 +1100 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2010-12-31 12:52:50 +0000 |
commit | 91beeee05f88eed10ab0fd97dc625e96cb7763ba (patch) | |
tree | 573e0bce17468271ee996ff7504c48785cb5d851 | |
parent | 36ebdd361616eedbe4919deae2a4e6f6606ae6b4 (diff) |
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>
-rw-r--r-- | dix/property.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |