Change-Id: I98364a89f4f2adf5944fb51d71bf81d2949d65cf
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
_media_svc_sql_query_add(&g_media_svc_insert_item_query_list, &sql);
} else {
ret = _media_svc_sql_query(sql, uid);
+ SQLITE3_SAFE_FREE(sql);
}
- SQLITE3_SAFE_FREE(sql);
return ret;
}
char *sql = NULL;
sqlite3_stmt *sql_stmt = NULL;
- sql = sqlite3_mprintf("SELECT thumbnail_path FROM '%q' WHERE thumbnail_path is not null;", storage_id);
+ sql = sqlite3_mprintf("SELECT media_thumbnail_path FROM '%q' WHERE media_thumbnail_path is not null;", storage_id);
ret = _media_svc_sql_prepare_to_step_simple(handle, sql, &sql_stmt);
media_svc_retv_if(ret != MS_MEDIA_ERR_NONE, ret);