From 9d8e7371fb03c640c4c9a1caa5bdd37b10e2ade2 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 28 Aug 2013 11:11:04 -0400 Subject: [PATCH] window-actor: Use g_clear_pointer --- src/compositor/meta-window-actor.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index 1d901147b..db01638f8 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -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);