aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-map-view.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-02 20:56:06 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-02 20:58:53 +0800
commitf0f07ffc65b2b8f353262ee8e0f5e4cc535a9772 (patch)
tree8cda5b47a19fda0671ffe080736b131674e32364 /src/empathy-map-view.c
parentbf773817f5ea14ac8566171153e2df793aeb03aa (diff)
downloadgsoc2013-empathy-f0f07ffc65b2b8f353262ee8e0f5e4cc535a9772.tar
gsoc2013-empathy-f0f07ffc65b2b8f353262ee8e0f5e4cc535a9772.tar.gz
gsoc2013-empathy-f0f07ffc65b2b8f353262ee8e0f5e4cc535a9772.tar.bz2
gsoc2013-empathy-f0f07ffc65b2b8f353262ee8e0f5e4cc535a9772.tar.lz
gsoc2013-empathy-f0f07ffc65b2b8f353262ee8e0f5e4cc535a9772.tar.xz
gsoc2013-empathy-f0f07ffc65b2b8f353262ee8e0f5e4cc535a9772.tar.zst
gsoc2013-empathy-f0f07ffc65b2b8f353262ee8e0f5e4cc535a9772.zip
free the list returned by clutter_container_get_children()
Diffstat (limited to 'src/empathy-map-view.c')
-rw-r--r--src/empathy-map-view.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/empathy-map-view.c b/src/empathy-map-view.c
index 2143f19ef..d266f6587 100644
--- a/src/empathy-map-view.c
+++ b/src/empathy-map-view.c
@@ -347,13 +347,14 @@ map_view_key_press_cb (GtkWidget *widget,
static gboolean
map_view_tick (EmpathyMapView *window)
{
- GList *marker;
+ GList *marker, *l;
marker = clutter_container_get_children (CLUTTER_CONTAINER (window->layer));
- for (; marker; marker = marker->next)
- map_view_contacts_update_label (marker->data);
+ for (l = marker; l != NULL; l = g_list_next (l))
+ map_view_contacts_update_label (l->data);
+ g_list_free (marker);
return TRUE;
}