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.
This commit is contained in:
Owen W. Taylor 2010-08-17 19:06:59 -04:00
parent 0b3327f04d
commit 15a214e435

View File

@ -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);
}