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.
This commit is contained in:
Matthias Clasen 2010-01-11 10:23:57 -05:00
parent 90f72a0d8f
commit d32b061895

View File

@ -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)
{