- The media_directory_scanning_async has been changed to free cb_data.
Change-Id: I12d77e9716baefeaf5a9383c3298ec31568ec0b4
Name: capi-content-media-content
Summary: A Media content library in Tizen Native API
-Version: 0.4.26
+Version: 0.4.27
Release: 0
Group: Multimedia/API
License: Apache-2.0
/*FIX ME. need to check ret value?*/
ret = media_directory_scanning_async(path, storage_id, is_recursive, _media_content_scan_cb_v2, cb_data, _content_get_uid());
- if (ret != MS_MEDIA_ERR_NONE)
+ if (ret != MS_MEDIA_ERR_NONE) {
content_error("media_directory_scanning_async failed : %d", ret);
+ g_free(cb_data);
+ }
return _content_error_capi(ret);
}
content_error("media_files_register failed : %d", ret);
if (unlink(list_path) < 0)
content_stderror("failed to delete");
+ g_free(_cb_data);
return _content_error_capi(ret);
}