MetaWindowActor: Make sure to always pop an error trap

https://bugzilla.gnome.org/show_bug.cgi?id=658228
This commit is contained in:
Jasper St. Pierre 2011-09-12 22:52:26 -04:00
parent de704386a1
commit 088e0c1ee7

View File

@ -1884,7 +1884,7 @@ check_needs_pixmap (MetaWindowActor *self)
{ {
meta_verbose ("Unable to get named pixmap for %p\n", self); meta_verbose ("Unable to get named pixmap for %p\n", self);
meta_window_actor_update_bounding_region_and_borders (self, 0, 0); meta_window_actor_update_bounding_region_and_borders (self, 0, 0);
return; goto out;
} }
if (compositor->no_mipmaps) if (compositor->no_mipmaps)
@ -1910,9 +1910,10 @@ check_needs_pixmap (MetaWindowActor *self)
meta_window_actor_update_bounding_region_and_borders (self, pxm_width, pxm_height); meta_window_actor_update_bounding_region_and_borders (self, pxm_width, pxm_height);
} }
meta_error_trap_pop (display);
priv->needs_pixmap = FALSE; priv->needs_pixmap = FALSE;
out:
meta_error_trap_pop (display);
} }
static void static void