aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-19 16:44:23 +0200
committerMax Kellermann <max@duempel.org>2008-09-19 16:44:23 +0200
commit7e9bee742cc8e7cc8d47f3a56466337d6d3a8efd (patch)
treee5cc7751c61ed9f37b5322467048197cba7e901a /src
parent20b724c08772ecef49b4db36516fc033c7517fa5 (diff)
downloadmpd-7e9bee742cc8e7cc8d47f3a56466337d6d3a8efd.tar.gz
mpd-7e9bee742cc8e7cc8d47f3a56466337d6d3a8efd.tar.xz
mpd-7e9bee742cc8e7cc8d47f3a56466337d6d3a8efd.zip
filelist: free entries with g_slice_free()
Somehow I forgot about changing free() to g_slice_free() in the previous patch...
Diffstat (limited to '')
-rw-r--r--src/filelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filelist.c b/src/filelist.c
index e21722ec4..6e4ebed55 100644
--- a/src/filelist.c
+++ b/src/filelist.c
@@ -46,7 +46,7 @@ filelist_free(struct filelist *filelist)
if (entry->entity)
mpd_freeInfoEntity(entry->entity);
- g_free(entry);
+ g_slice_free(struct filelist_entry, entry);
}
g_ptr_array_free(filelist->entries, TRUE);
@@ -57,7 +57,7 @@ filelist_free(struct filelist *filelist)
struct filelist_entry *
filelist_append(struct filelist *filelist, struct mpd_InfoEntity *entity)
{
- struct filelist_entry *entry = g_slice_alloc(sizeof(*entry));
+ struct filelist_entry *entry = g_slice_new(struct filelist_entry);
entry->flags = 0;
entry->entity = entity;