From: Emmanuel Rodriguez Date: Sun, 14 Jun 2009 21:55:45 +0000 (+0200) Subject: Properly finish the pending goto animation during a dispose. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=853e16ab96a6dc7f721400ad7a86ed2bfa402995;p=libchamplain 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. --- 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); }