[libchamplain] Properly finish the pending goto animation during a dispose.



commit 853e16ab96a6dc7f721400ad7a86ed2bfa402995
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date:   Sun Jun 14 23:55:45 2009 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)
---
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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]