From b9247b4b2ff72841f1677cccfbd61c4726aed2a6 Mon Sep 17 00:00:00 2001 From: Pavel Vasin Date: Sat, 14 Sep 2013 16:20:41 +0400 Subject: [PATCH] shaped-texture: Fix memory leak https://bugzilla.gnome.org/show_bug.cgi?id=708070 --- src/compositor/meta-shaped-texture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index 2dc75f8d8..30135d4f6 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -145,6 +145,7 @@ meta_shaped_texture_dispose (GObject *object) priv->paint_tower = NULL; g_clear_pointer (&priv->texture, cogl_object_unref); + g_clear_pointer (&priv->opaque_region, cairo_region_destroy); meta_shaped_texture_set_mask_texture (self, NULL); meta_shaped_texture_set_clip_region (self, NULL);