Daniel Stone <[email protected]> wrote:

> This enables us to reliably inspect properties when destroying windows.
> 
> Signed-off-by: Daniel Stone <[email protected]>
> ---
>  dix/property.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/dix/property.c b/dix/property.c
> index 1d4332a..a1ae530 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
> -- 
> 1.7.2.3

Yeah, restoring the default state of the field is a good idea.

Reviewed-by: Fernando Carrijo <[email protected]>
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to