From 71b4d83144a3111d54143031b11b1087396deca7 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sun, 10 Oct 2010 18:18:27 +0900 Subject: [PATCH] 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 --- gtk/gtkwindow.c | 1 + 1 file changed, 1 insertion(+) 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