pidgin: b625509e: Leak fix

nosnilmot at pidgin.im nosnilmot at pidgin.im
Wed Apr 23 11:06:01 EDT 2008


-----------------------------------------------------------------
Revision: b625509e5ef6335b33cef9196c64aa72df5fda00
Ancestor: 276fd6dd7c954f0c25682fb748259a6d78ec073c
Author: nosnilmot at pidgin.im
Date: 2008-04-23T15:00:03
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b625509e5ef6335b33cef9196c64aa72df5fda00

Modified files:
        pidgin/gtkmenutray.c

ChangeLog: 

Leak fix

-------------- next part --------------
============================================================
--- pidgin/gtkmenutray.c	717b9c19a666e037556e87dd54c3950bf6253223
+++ pidgin/gtkmenutray.c	13a805a9aa98d3e59a7bdf688af0223df2e414c1
@@ -134,8 +134,6 @@ pidgin_menu_tray_init(PidginMenuTray *me
 	if(!GTK_IS_WIDGET(menu_tray->tray))
 		menu_tray->tray = gtk_hbox_new(FALSE, 0);
 
-	menu_tray->tooltips = gtk_tooltips_new();
-
 #if GTK_CHECK_VERSION(2,2,0)
 	settings =
 		gtk_settings_get_for_screen(gtk_widget_get_screen(widget));
@@ -235,7 +233,7 @@ pidgin_menu_tray_set_tooltip(PidginMenuT
 pidgin_menu_tray_set_tooltip(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip)
 {
 	if (!menu_tray->tooltips)
-		return;
+		menu_tray->tooltips = gtk_tooltips_new();
 
 	/* Should we check whether widget is a child of menu_tray? */
 


More information about the Commits mailing list