From 853e16ab96a6dc7f721400ad7a86ed2bfa402995 Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez Date: Sun, 14 Jun 2009 23:55:45 +0200 Subject: [PATCH] Properly finish the pending goto animation during a dispose. If the view is closed while an animation is pending the program will crash with the error *** glibc detected *** perl: double free or corruption (!prev): 0x09a68160 *** See bug: http://bugzilla.gnome.org/show_bug.cgi?id=585776 This patch seems to fix the problem. --- champlain/champlain-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c index 064ba93..689e144 100644 --- a/champlain/champlain-view.c +++ b/champlain/champlain-view.c @@ -724,7 +724,7 @@ champlain_view_dispose (GObject *object) } if (priv->goto_context != NULL) - g_free (priv->goto_context); + champlain_view_stop_go_to (view); G_OBJECT_CLASS (champlain_view_parent_class)->dispose (object); } -- 2.39.5