[gtk+/native-layout] Plug a pixmap leak



commit 6860f86724e213b30fab4391697a576cbce9402f
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 11 10:23:57 2010 -0500

    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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c
index 67da9a5..42dc712 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)
 	{



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]