diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index 8a9186ac7..9248fb716 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -969,10 +969,7 @@ meta_shaped_texture_set_clip_region (MetaShapedTexture *stex, priv = stex->priv; if (priv->clip_region) - { - cairo_region_destroy (priv->clip_region); - priv->clip_region = NULL; - } + cairo_region_destroy (priv->clip_region); if (clip_region) priv->clip_region = cairo_region_copy (clip_region);