summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Vasin <rat4vier@gmail.com>2013-09-14 16:19:46 +0400
committerAdel Gadllah <adel.gadllah@gmail.com>2013-09-14 17:06:15 +0200
commit8a370c00947b8d6b020593ebe2ef78539a1755b3 (patch)
treea2d061ac2d615858c23818256b37a309b82f8df3
parentabe0701ce778ea641baed856284d2fb1dd881e64 (diff)
downloadmutter-8a370c00947b8d6b020593ebe2ef78539a1755b3.tar.gz
window: Fix memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=708070
-rw-r--r--src/core/window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 9b49cfbab..002e4c5f0 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -234,6 +234,9 @@ meta_window_finalize (GObject *object)
if (window->frame_bounds)
cairo_region_destroy (window->frame_bounds);
+ if (window->shape_region)
+ cairo_region_destroy (window->shape_region);
+
if (window->opaque_region)
cairo_region_destroy (window->opaque_region);