comparison 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
comparison
equal deleted inserted replaced
11598:7d7de96eef1e 11599:767e3c0c5062
77 } 77 }
78 } 78 }
79 79
80 static void 80 static void
81 gaim_gtk_menu_tray_finalize(GObject *obj) { 81 gaim_gtk_menu_tray_finalize(GObject *obj) {
82 #if 0
83 /* This _might_ be leaking, but I have a sneaking suspicion that the widget is
84 * getting destroyed in GtkContainer's finalize function. But if were are
85 * leaking here, be sure to figure out why this causes a crash.
86 * -- Gary
87 */
82 GaimGtkMenuTray *tray = GAIM_GTK_MENU_TRAY(obj); 88 GaimGtkMenuTray *tray = GAIM_GTK_MENU_TRAY(obj);
89
83 if(GTK_IS_WIDGET(tray->tray)) 90 if(GTK_IS_WIDGET(tray->tray))
84 gtk_widget_destroy(GTK_WIDGET(tray->tray)); 91 gtk_widget_destroy(GTK_WIDGET(tray->tray));
92 #endif
85 93
86 G_OBJECT_CLASS(parent_class)->finalize(obj); 94 G_OBJECT_CLASS(parent_class)->finalize(obj);
87 } 95 }
88 96
89 static void 97 static void