[libchamplain] Fix memory leaks in ChamplainLayer



commit 9e55dab9d1ae3eb100eb8fab6bd307ee0398052d
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date:   Thu Sep 3 08:31:28 2009 -0400

    Fix memory leaks in ChamplainLayer
    
    Reported by Olivier Le Thanh Duong

 champlain/champlain-layer.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]