summaryrefslogtreecommitdiffstats
path: root/binding/media-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'binding/media-api.c')
-rw-r--r--binding/media-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/media-api.c b/binding/media-api.c
index d02ad93..f81177d 100644
--- a/binding/media-api.c
+++ b/binding/media-api.c
@@ -142,7 +142,7 @@ static void media_results_get (afb_req_t request)
}
jresp = new_json_object_from_device(list);
- g_list_free(list);
+ g_list_free_full(list,free_media_item);
ListUnlock();
if (jresp == NULL) {