window-actor: Fix leaked opaque_region

https://bugzilla.gnome.org/show_bug.cgi?id=695135
This commit is contained in:
Pavel Vasin 2013-03-04 19:00:14 +04:00 committed by Florian Müllner
parent 377e2ed8a5
commit 7db236b2a4

View File

@ -2201,6 +2201,7 @@ check_needs_reshape (MetaWindowActor *self)
meta_shaped_texture_set_mask_texture (META_SHAPED_TEXTURE (priv->actor), NULL); meta_shaped_texture_set_mask_texture (META_SHAPED_TEXTURE (priv->actor), NULL);
g_clear_pointer (&priv->shape_region, cairo_region_destroy); g_clear_pointer (&priv->shape_region, cairo_region_destroy);
g_clear_pointer (&priv->opaque_region, cairo_region_destroy);
#ifdef HAVE_SHAPE #ifdef HAVE_SHAPE
if (priv->window->has_shape) if (priv->window->has_shape)