changeset 4571:51e988d015ed

[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 <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 11 Feb 2003 17:26:16 +0000
parents 67a373071933
children 06084165a966
files src/gtkconv.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);