window-actor: Use g_clear_pointer
This commit is contained in:
parent
84a1b394a1
commit
9d8e7371fb
@ -2236,11 +2236,7 @@ check_needs_reshape (MetaWindowActor *self)
|
|||||||
if (!priv->needs_reshape)
|
if (!priv->needs_reshape)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (priv->shadow_shape != NULL)
|
g_clear_pointer (&priv->shadow_shape, meta_window_shape_unref);
|
||||||
{
|
|
||||||
meta_window_shape_unref (priv->shadow_shape);
|
|
||||||
priv->shadow_shape = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
meta_frame_calc_borders (priv->window->frame, &borders);
|
meta_frame_calc_borders (priv->window->frame, &borders);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user