From 6860f86724e213b30fab4391697a576cbce9402f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 11 Jan 2010 10:23:57 -0500 Subject: [PATCH] Plug a pixmap leak We were getting our refcounts tangled up when setting drawable clips on GCs with CSW, leading to a pretty bad pixmap leak. See bug 606143. --- gdk/gdkgc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c index 67da9a5983..42dc712270 100644 --- a/gdk/gdkgc.c +++ b/gdk/gdkgc.c @@ -682,6 +682,7 @@ _gdk_gc_add_drawable_clip (GdkGC *gc, -1, -1); gdk_gc_set_clip_region (tmp_gc, NULL); gdk_gc_set_clip_mask (gc, new_mask); + g_object_unref (new_mask); } else if (overlap == GDK_OVERLAP_RECTANGLE_OUT) {