]> err.no Git - libchamplain/commitdiff
Fix memory leaks in ChamplainLayer
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Thu, 3 Sep 2009 12:31:28 +0000 (08:31 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Thu, 3 Sep 2009 12:31:28 +0000 (08:31 -0400)
Reported by Olivier Le Thanh Duong

champlain/champlain-layer.c

index c6b6da29787f54d53ad9cabfb0118fc57db10708..014d50b9d4be56fd82427f1ef667b43408512b70 100644 (file)
@@ -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);
 }