summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminje.ahn <minje.ahn@samsung.com>2022-07-11 12:12:15 +0900
committerminje.ahn <minje.ahn@samsung.com>2022-07-11 14:18:12 +0900
commitea65ca0277d92589ca6231929cd796c2f2416b69 (patch)
treea1891071d91bec4f4763b41230de02d0326478c7
parentc4791a24e66f7810ea9b7815017d69ec5a6bb200 (diff)
downloadmedia-content-ea65ca0277d92589ca6231929cd796c2f2416b69.tar.gz
media-content-ea65ca0277d92589ca6231929cd796c2f2416b69.tar.bz2
media-content-ea65ca0277d92589ca6231929cd796c2f2416b69.zip
Change-Id: I7ffd17d78da85aea7742f9a24bf0d2ed56203139 Signed-off-by: minje.ahn <minje.ahn@samsung.com>
-rwxr-xr-xtest/media-content_test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/media-content_test.c b/test/media-content_test.c
index 695017f..1146ffe 100755
--- a/test/media-content_test.c
+++ b/test/media-content_test.c
@@ -1775,6 +1775,12 @@ int test_tag_operation_v2(void)
return ret;
}
+static void __bookmark_handle_free(gpointer data)
+{
+ media_bookmark_h handle = (media_bookmark_h) data;
+ media_bookmark_destroy(handle);
+}
+
int test_bookmark_operation(void)
{
/* bookmark is only supported for video information. */
@@ -1833,6 +1839,9 @@ int test_bookmark_operation(void)
content_error("error media_bookmark_update_to_db : [%d]", ret);
}
+ if (all_item_list)
+ g_list_free_full(all_item_list, __bookmark_handle_free);
+
ret = media_info_foreach_bookmark_from_db(test_video_id, NULL, bookmarks_cb, NULL);
if (ret != MEDIA_CONTENT_ERROR_NONE)
content_error("error media_info_foreach_bookmark_from_db : [%d]", ret);