mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 21:34:09 +00:00
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:
parent
0b3327f04d
commit
15a214e435
@ -1028,10 +1028,10 @@ mutter_window_detach (MutterWindow *self)
|
|||||||
if (!priv->back_pixmap)
|
if (!priv->back_pixmap)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
priv->back_pixmap = None;
|
|
||||||
clutter_x11_texture_pixmap_set_pixmap (CLUTTER_X11_TEXTURE_PIXMAP (priv->actor),
|
clutter_x11_texture_pixmap_set_pixmap (CLUTTER_X11_TEXTURE_PIXMAP (priv->actor),
|
||||||
None);
|
None);
|
||||||
XFreePixmap (xdisplay, priv->back_pixmap);
|
XFreePixmap (xdisplay, priv->back_pixmap);
|
||||||
|
priv->back_pixmap = None;
|
||||||
|
|
||||||
mutter_window_queue_create_pixmap (self);
|
mutter_window_queue_create_pixmap (self);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user