shaped-texture: Remove an unnecessary set to NULL

This commit is contained in:
Jasper St. Pierre 2013-08-27 17:17:15 -04:00
parent 5b0f0d9e5b
commit 1b3c77d53a

View File

@ -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);