Change-Id: I747211474cd4e09ec0dc1c87f9efe3e70b5f41f3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
data = reinterpret_cast<guchar*>(g_try_malloc(len));
if (!data) {
LOG(ERROR) << "Out of memory";
+ g_variant_iter_free(iter);
return;
}
int64_t sent_size;
int64_t total_size;
- g_variant_get(param, "(sxx)", &file_path, &sent_size, &total_size);
+ g_variant_get(param, "(&sxx)", &file_path, &sent_size, &total_size);
// file_path may key for search handlers for multiple file handling.
if (file->progress_cb.callback) {