From 67ebb49dc04174705f54a6a571e282d197fb178f Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Thu, 28 May 2009 00:38:01 -0400 Subject: [PATCH] Also unref the previous level --- champlain/champlain-map.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/champlain/champlain-map.c b/champlain/champlain-map.c index 6c01938..3f18847 100644 --- a/champlain/champlain-map.c +++ b/champlain/champlain-map.c @@ -84,7 +84,10 @@ map_zoom_out (Map *map, void map_free (Map *map) { - g_object_unref (map->current_level); + if (map->previous_level != NULL) + g_object_unref (map->previous_level); + if (map->current_level != NULL) + g_object_unref (map->current_level); g_free (map); } -- 2.39.5