[mutter] Fix order of pixmap = None and XFreePixmap() in last commit



commit 15a214e435ace5b76358c6ce129275d98f85b7fd
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Aug 17 19:06:59 2010 -0400

    Fix order of pixmap = None and XFreePixmap() in last commit
    
    The last commit set MutterWindow->priv->back_pixmap to None before
    calling XFreePixmap on it. Fix.

 src/compositor/mutter-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/compositor/mutter-window.c b/src/compositor/mutter-window.c
index 3581749..e971d31 100644
--- a/src/compositor/mutter-window.c
+++ b/src/compositor/mutter-window.c
@@ -1028,10 +1028,10 @@ mutter_window_detach (MutterWindow *self)
   if (!priv->back_pixmap)
     return;
 
-  priv->back_pixmap = None;
   clutter_x11_texture_pixmap_set_pixmap (CLUTTER_X11_TEXTURE_PIXMAP (priv->actor),
                                          None);
   XFreePixmap (xdisplay, priv->back_pixmap);
+  priv->back_pixmap = None;
 
   mutter_window_queue_create_pixmap (self);
 }



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