changeset 23384:76f7e2186c38

Plug the memory leak in the tooltip for menutrays properly. Thanks to Andrea Visinoni for pointing at the bug.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 21 Jun 2008 16:32:51 +0000
parents 6b4b68323b3b
children 540a26a1a88d
files pidgin/gtkmenutray.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }