From: Pierre-Luc Beaudoin Date: Thu, 3 Sep 2009 12:31:28 +0000 (-0400) Subject: Fix memory leaks in ChamplainLayer X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e55dab9d1ae3eb100eb8fab6bd307ee0398052d;p=libchamplain Fix memory leaks in ChamplainLayer Reported by Olivier Le Thanh Duong --- 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); }