]> err.no Git - libchamplain/commitdiff
Properly finish the pending goto animation during a dispose.
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Sun, 14 Jun 2009 21:55:45 +0000 (23:55 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 14 Jun 2009 22:14:08 +0000 (18:14 -0400)
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

index 064ba93044c51d14da682d90ded07da83d1ed614..689e144eeb048affef9ec31dce6b7fd1636e41fa 100644 (file)
@@ -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);
 }