From: Emmanuel Rodriguez Date: Wed, 22 Apr 2009 20:50:04 +0000 (+0200) Subject: Memory leak: priv->map is now freed in champlain_view_dispose() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70cd20f8685aac9650805bba2eb5fc524b0fc8ee;p=libchamplain Memory leak: priv->map is now freed in champlain_view_dispose() --- diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c index 80153e2..fd0a5e9 100644 --- a/champlain/champlain-view.c +++ b/champlain/champlain-view.c @@ -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);