pidgin: 1dc65a60: Plug the memory leak in the tooltip for ...

sadrul at pidgin.im sadrul at pidgin.im
Sat Jun 21 12:50:52 EDT 2008


-----------------------------------------------------------------
Revision: 1dc65a60c4539192880bccd743e123539bd85585
Ancestor: 69b22e32f7ada182101e0746f02891389ceb0c52
Author: sadrul at pidgin.im
Date: 2008-06-21T16:32:51
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/1dc65a60c4539192880bccd743e123539bd85585

Modified files:
        pidgin/gtkmenutray.c

ChangeLog: 

Plug the memory leak in the tooltip for menutrays properly. Thanks to
Andrea Visinoni for pointing at the bug.

-------------- next part --------------
============================================================
--- pidgin/gtkmenutray.c	379e9d48d2bb7d9a67fe6927cccdab5263f55971
+++ pidgin/gtkmenutray.c	6fa3e850fb9737b47291213a00cebdfd2a5d9f92
@@ -98,8 +98,9 @@ pidgin_menu_tray_finalize(GObject *obj)
 		gtk_widget_destroy(GTK_WIDGET(tray->tray));
 #endif
 
-	if (tray->tooltips)
-		g_object_ref_sink(G_OBJECT(tray->tooltips));
+	if (tray->tooltips) {
+		gtk_object_sink(GTK_OBJECT(tray->tooltips));
+	}
 
 	G_OBJECT_CLASS(parent_class)->finalize(obj);
 }


More information about the Commits mailing list