# HG changeset patch # User Christian Hammond # Date 1044984376 0 # Node ID 51e988d015edbcbd0077d414110a8d329450f625 # Parent 67a37307193317ed5060b2b3c9176a2995668108 [gaim-migrate @ 4852] I don't know if this is gtk's problem or my (our?) misunderstanding of GtkNotebook, but it seems pages that are deleted aren't destroying the child widgets, so we're doing that manually now. It should free up a LOT of memory, and since this is how the old code did it (I think), it should explain the large memory leaks people used to report. committer: Tailor Script diff -r 67a373071933 -r 51e988d015ed src/gtkconv.c --- a/src/gtkconv.c Tue Feb 11 06:15:30 2003 +0000 +++ b/src/gtkconv.c Tue Feb 11 17:26:16 2003 +0000 @@ -3397,7 +3397,7 @@ _("Close conversation"), NULL); g_signal_connect(G_OBJECT(gtkconv->close), "clicked", - G_CALLBACK(close_conv_cb), conv); + G_CALLBACK(close_conv_cb), conv); /* Tab label. */ gtkconv->tab_label = gtk_label_new(gaim_conversation_get_title(conv)); @@ -3590,6 +3590,8 @@ if (gtkconv->dialogs.log != NULL) gtk_widget_destroy(gtkconv->dialogs.log); + gtk_widget_destroy(gtkconv->tab_cont); + if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { if (gtkconv->u.im->save_icon != NULL) gtk_widget_destroy(gtkconv->u.im->save_icon);