[metacity/gnome-3-22] compositor: set cw->window to NULL in xrender_free_window



commit 3cda5e9d293d3b36536e43a42f5e898246874bc9
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Oct 25 23:01:41 2016 +0300

    compositor: set cw->window to NULL in xrender_free_window

 src/compositor/compositor-xrender.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c
index 8dd722b..9590cff 100644
--- a/src/compositor/compositor-xrender.c
+++ b/src/compositor/compositor-xrender.c
@@ -3292,6 +3292,7 @@ xrender_free_window (MetaCompositor *compositor,
   if (cw == NULL)
     return;
 
+  cw->window = NULL;
   cw->attrs.map_state = IsUnmapped;
   cw->damaged = FALSE;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]