src/gtkconv.c

changeset 9887
d67d35d983a8
parent 9885
af0d918e9262
child 9909
b13c36f7d52b
--- a/src/gtkconv.c	Thu Aug 26 22:10:43 2004 +0000
+++ b/src/gtkconv.c	Thu Aug 26 22:28:14 2004 +0000
@@ -2466,8 +2466,8 @@
 {
 	g_return_if_fail(gtkconv != NULL);
 
-	if (gtkconv->u.im->icon != NULL)
-		gtk_widget_destroy(gtkconv->u.im->icon->parent->parent->parent);
+	if (gtkconv->u.im->icon_container != NULL)
+		gtk_widget_destroy(gtkconv->u.im->icon_container);
 
 	if (gtkconv->u.im->anim != NULL)
 		g_object_unref(G_OBJECT(gtkconv->u.im->anim));
@@ -5657,6 +5657,8 @@
 	if (gtkconv->u.im->anim != NULL)
 		g_object_unref(G_OBJECT(gtkconv->u.im->anim));
 
+	gtkconv->u.im->anim = NULL;
+
 	if (gtkconv->u.im->icon_timer != 0)
 		g_source_remove(gtkconv->u.im->icon_timer);
 

mercurial