From 70cd20f8685aac9650805bba2eb5fc524b0fc8ee Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez Date: Wed, 22 Apr 2009 22:50:04 +0200 Subject: [PATCH] Memory leak: priv->map is now freed in champlain_view_dispose() --- champlain/champlain-view.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.5