diff src/gtkmenutray.c @ 11599:767e3c0c5062

[gaim-migrate @ 13869] Sadrul says this helps the menu tray crash, and see my comment in the file... committer: Tailor Script <tailor@pidgin.im>
author Gary Kramlich <grim@reaperworld.com>
date Mon, 03 Oct 2005 06:39:49 +0000
parents 19941a47405c
children c9188d3eb9d3
line wrap: on
line diff
--- a/src/gtkmenutray.c	Mon Oct 03 05:54:06 2005 +0000
+++ b/src/gtkmenutray.c	Mon Oct 03 06:39:49 2005 +0000
@@ -79,9 +79,17 @@
 
 static void
 gaim_gtk_menu_tray_finalize(GObject *obj) {
+#if 0
+	/* This _might_ be leaking, but I have a sneaking suspicion that the widget is
+	 * getting destroyed in GtkContainer's finalize function.  But if were are
+	 * leaking here, be sure to figure out why this causes a crash.
+	 *	-- Gary
+	 */
 	GaimGtkMenuTray *tray = GAIM_GTK_MENU_TRAY(obj);
+
 	if(GTK_IS_WIDGET(tray->tray))
 		gtk_widget_destroy(GTK_WIDGET(tray->tray));
+#endif
 
 	G_OBJECT_CLASS(parent_class)->finalize(obj);
 }