[gegl] buffer: fix failed freeing of an slist
- From: Ville Sokk <villesokk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: fix failed freeing of an slist
- Date: Sun, 30 Sep 2012 16:30:57 +0000 (UTC)
commit 8441be59f420b5462dc30de388d36670ef29b72c
Author: Ville Sokk <ville sokk gmail com>
Date: Sun Sep 30 19:29:40 2012 +0300
buffer: fix failed freeing of an slist
gegl/buffer/gegl-tile-backend-file-async.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gegl/buffer/gegl-tile-backend-file-async.c b/gegl/buffer/gegl-tile-backend-file-async.c
index 8c08bf9..1aa5cc7 100644
--- a/gegl/buffer/gegl-tile-backend-file-async.c
+++ b/gegl/buffer/gegl-tile-backend-file-async.c
@@ -904,10 +904,9 @@ gegl_tile_backend_file_free_free_list (GeglTileBackendFile *self)
GSList *iter = self->free_list;
for (; iter; iter = iter->next)
- {
- g_free (iter->data);
- g_slist_free (iter);
- }
+ g_free (iter->data);
+
+ g_slist_free (self->free_list);
self->free_list = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]