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 committed by Tristan Van Berkom
parent 43572af86e
commit 6860f86724

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