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. */
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);