]> err.no Git - libchamplain/commitdiff
Memory leak: priv->map is now freed in champlain_view_dispose()
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Wed, 22 Apr 2009 20:50:04 +0000 (22:50 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 22 Apr 2009 22:13:43 +0000 (18:13 -0400)
champlain/champlain-view.c

index 80153e20dd7fe08d5f4482260cd1f2c487d1688e..fd0a5e904ba8bfb22f5b76452564cc22342afb49 100644 (file)
@@ -530,6 +530,8 @@ champlain_view_dispose (GObject *object)
   g_object_unref (priv->user_layers);
   g_object_unref (priv->stage);
 
+  map_free (priv->map);
+
   if (priv->goto_context)
     g_free (priv->goto_context);
 }
@@ -911,7 +913,7 @@ update_license (ChamplainView *view)
 
   if (priv->show_license)
     {
-      priv->license_actor = g_object_ref (clutter_label_new_with_text ( "sans 8",
+      priv->license_actor = g_object_ref (clutter_label_new_with_text ("sans 8",
           champlain_map_source_get_license (priv->map_source)));
       clutter_actor_set_opacity (priv->license_actor, 128);
       clutter_actor_show (priv->license_actor);