From 9e55dab9d1ae3eb100eb8fab6bd307ee0398052d Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Thu, 3 Sep 2009 08:31:28 -0400 Subject: [PATCH] Fix memory leaks in ChamplainLayer Reported by Olivier Le Thanh Duong --- champlain/champlain-layer.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/champlain/champlain-layer.c b/champlain/champlain-layer.c index c6b6da2..014d50b 100644 --- a/champlain/champlain-layer.c +++ b/champlain/champlain-layer.c @@ -286,6 +286,8 @@ champlain_layer_animate_in_all_markers (ChamplainLayer *layer) delay); delay += 50; } + + g_list_free (children); } /** @@ -312,6 +314,8 @@ champlain_layer_animate_out_all_markers (ChamplainLayer *layer) delay); delay += 50; } + + g_list_free (children); } /** @@ -335,6 +339,8 @@ champlain_layer_show_all_markers (ChamplainLayer *layer) { clutter_actor_show (CLUTTER_ACTOR (children->data)); } + + g_list_free (children); } /** @@ -358,4 +364,6 @@ champlain_layer_hide_all_markers (ChamplainLayer *layer) { clutter_actor_hide (CLUTTER_ACTOR (children->data)); } + + g_list_free (children); } -- 2.39.5