window-actor: Use g_clear_pointer

This commit is contained in:
Jasper St. Pierre 2013-08-28 11:11:04 -04:00
parent 1b3c77d53a
commit 1a7984be43

View File

@ -2347,11 +2347,7 @@ meta_window_actor_update_shape_region (MetaWindowActor *self,
g_clear_pointer (&priv->shape_region, cairo_region_destroy);
priv->shape_region = region;
if (priv->shadow_shape != NULL)
{
meta_window_shape_unref (priv->shadow_shape);
priv->shadow_shape = NULL;
}
g_clear_pointer (&priv->shadow_shape, meta_window_shape_unref);
meta_window_actor_invalidate_shadow (self);
}