[grilo-plugins] tmdb: Fix test_tmdb_full_resolution test
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] tmdb: Fix test_tmdb_full_resolution test
- Date: Mon, 21 Jan 2013 19:22:37 +0000 (UTC)
commit 04b6e346f51cd25c8077b391d1d9950860fd8e65
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Mon Jan 21 19:20:32 2013 +0000
tmdb: Fix test_tmdb_full_resolution test
Make a copy of JSON children nodes when processing a node, as we will loose the
reference as soon as we free that node.
src/tmdb/grl-tmdb-request.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tmdb/grl-tmdb-request.c b/src/tmdb/grl-tmdb-request.c
index a5a4e8d..cca940e 100644
--- a/src/tmdb/grl-tmdb-request.c
+++ b/src/tmdb/grl-tmdb-request.c
@@ -228,7 +228,7 @@ fill_list_filtered (JsonArray *array,
FilterClosure *closure = (FilterClosure *) user_data;
if (closure->filter == NULL || closure->filter (element)) {
- closure->list = g_list_prepend (closure->list, element);
+ closure->list = g_list_prepend (closure->list, json_node_copy (element));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]