window-actor: Use g_clear_pointer

This commit is contained in:
Jasper St. Pierre 2013-08-28 11:11:04 -04:00
parent 84a1b394a1
commit 9d8e7371fb

View File

@ -2236,11 +2236,7 @@ check_needs_reshape (MetaWindowActor *self)
if (!priv->needs_reshape)
return;
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_frame_calc_borders (priv->window->frame, &borders);