dcm_debug("[#%d] face rect: XYWH (%d, %d, %d, %d)", i, face->face_rect_x, face->face_rect_y, face->face_rect_w,
face->face_rect_h);
- face->media_uuid = strdup(scan_item->media_uuid);
+ face->media_uuid = g_strdup(scan_item->media_uuid);
/* Insert face rectangle into database */
ret = dcm_svc_db_generate_uuid(&face);
dcm_debug("image_util_extract_color_from_memory result r:%02x, g:%02x, b:%02x", colorItem.rgb_r, colorItem.rgb_g, colorItem.rgb_b);
- colorItem.media_uuid = strdup(scan_item->media_uuid);
- colorItem.storage_uuid = strdup(scan_item->storage_uuid);
+ colorItem.media_uuid = g_strdup(scan_item->media_uuid);
+ colorItem.storage_uuid = g_strdup(scan_item->storage_uuid);
ret = dcm_svc_db_update_color_to_db(colorItem);
if (ret != MS_MEDIA_ERR_NONE) {
dcm_error("Failed to update color item into db! err: %d", ret);