Remove the vcf file after saving into contact 73/230573/2
authorDoHyun Pyun <dh79.pyun@samsung.com>
Sun, 12 Apr 2020 23:40:28 +0000 (08:40 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 13 Apr 2020 00:04:37 +0000 (09:04 +0900)
Change-Id: I8f4cac9e71ef504ee1c12b4ccf120ebe1a76bc56
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-share/src/obex-event-handler.c

index b309639..e47952b 100644 (file)
@@ -1641,9 +1641,11 @@ static void *__bt_obex_writeclose(bt_file_info_t *info)
        if (__bt_save_v_object(info->file_path, info->file_type) == FALSE) {
                ERR("Unable to save vObject");
                __bt_scan_media_file(info->file_path);
-       } else if (info->file_type == BT_FILE_VCAL) {
-               ecore_file_remove(info->file_path);
        }
+
+       if (info->file_type == BT_FILE_VCAL || info->file_type == BT_FILE_VCARD)
+               ecore_file_remove(info->file_path);
+
        __free_file_info(info);
 
        return NULL;