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>
This commit is contained in:
Xan Lopez 2010-10-10 18:18:27 +09:00 committed by Benjamin Otte
parent 3f3d33ee6c
commit 71b4d83144

View File

@ -5021,6 +5021,7 @@ set_grip_shape (GtkWindow *window)
cairo_surface_destroy (surface); cairo_surface_destroy (surface);
gdk_window_shape_combine_region (priv->grip_window, region, 0, 0); gdk_window_shape_combine_region (priv->grip_window, region, 0, 0);
cairo_region_destroy (region);
} }
static void static void