# HG changeset patch # User Sadrul Habib Chowdhury # Date 1214065971 0 # Node ID 76f7e2186c3805d889c63a9be138bf3927a1a348 # Parent 6b4b68323b3b8d7c6c1e2e1e2f98874cd4753a11 Plug the memory leak in the tooltip for menutrays properly. Thanks to Andrea Visinoni for pointing at the bug. diff -r 6b4b68323b3b -r 76f7e2186c38 pidgin/gtkmenutray.c --- a/pidgin/gtkmenutray.c Sat Jun 21 11:07:17 2008 +0000 +++ b/pidgin/gtkmenutray.c Sat Jun 21 16:32:51 2008 +0000 @@ -98,8 +98,9 @@ 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); }