changeset 1530:0b6e4d52de63

[gaim-migrate @ 1540] possible segfault? committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 04 Mar 2001 01:00:08 +0000
parents e2f256502345
children e06dcc3025a9
files src/away.c src/prpl.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/away.c	Sat Mar 03 12:56:25 2001 +0000
+++ b/src/away.c	Sun Mar 04 01:00:08 2001 +0000
@@ -254,7 +254,7 @@
 		l = gtk_container_children(GTK_CONTAINER(awaymenu));
 
 		while (l) {
-			gtk_widget_destroy(GTK_WIDGET(l->data));
+			gtk_container_remove(GTK_CONTAINER(awaymenu), GTK_WIDGET(l->data));
 			l = l->next;
 		}
 
--- a/src/prpl.c	Sat Mar 03 12:56:25 2001 +0000
+++ b/src/prpl.c	Sun Mar 04 01:00:08 2001 +0000
@@ -384,7 +384,7 @@
 
 	l = gtk_container_children(GTK_CONTAINER(protomenu));
 	while (l) {
-		gtk_widget_destroy(GTK_WIDGET(l->data));
+		gtk_container_remove(GTK_CONTAINER(protomenu), GTK_WIDGET(l->data));
 		l = l->next;
 	}