summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2010-10-10 18:18:27 +0900
committerBenjamin Otte <otte@redhat.com>2010-10-11 02:33:25 +0200
commit71b4d83144a3111d54143031b11b1087396deca7 (patch)
treeb06ff3e1c2bb13abb9a6f7dc92d810e7fd45dc17 /gtk
parent3f3d33ee6c4d3a30df1895c7da53804a3039a524 (diff)
downloadgtk+-71b4d83144a3111d54143031b11b1087396deca7.tar.gz
Plug memory leak in GtkWindow
1,936 (112 direct, 1,824 indirect) bytes in 4 blocks are definitely lost in loss record 13,453 of 13,673 at 0x4005BDC: malloc (vg_replace_malloc.c:195) by 0x69615A1: cairo_region_create (cairo-region.c:196) by 0x683BFBF: gdk_cairo_region_create_from_surface (gdkcairo.c:455) by 0x670C882: set_grip_shape (gtkwindow.c:5020) by 0x670CFBF: resize_grip_create_window (gtkwindow.c:5271) by 0x670C466: gtk_window_realize (gtkwindow.c:4902) Signed-off-by: Benjamin Otte <otte@redhat.com>
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkwindow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 03e096c0d4..4103ef67c8 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5021,6 +5021,7 @@ set_grip_shape (GtkWindow *window)
cairo_surface_destroy (surface);
gdk_window_shape_combine_region (priv->grip_window, region, 0, 0);
+ cairo_region_destroy (region);
}
static void