Comment 13 for bug 740258

Revision history for this message
Lieven van der Heide (lievenvanderheide) wrote :

I fixed this one in lp:~lievenvanderheide/compiz/PixmapLeakFix. The problem seemed to be that the author assumed GdkPixmap's was reference counted like a GtkObject (ie, initially a floating reference, which must be ref'ed to become a real reference). GdkPixmap doesn't derive from GtkObject though, and so uses GObject reference counting, which means it has an initial ref count of 1. I removed the two g_object_ref lines from switcher.c, which seems to fix the leaks.