From 743cb08c321c2fe1fcbd6d4c188132674b5af7a6 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Mon, 13 Apr 2020 08:40:28 +0900 Subject: [PATCH] Remove the vcf file after saving into contact Change-Id: I8f4cac9e71ef504ee1c12b4ccf120ebe1a76bc56 Signed-off-by: DoHyun Pyun --- bt-share/src/obex-event-handler.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bt-share/src/obex-event-handler.c b/bt-share/src/obex-event-handler.c index b309639..e47952b 100644 --- a/bt-share/src/obex-event-handler.c +++ b/bt-share/src/obex-event-handler.c @@ -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; -- 2.7.4