From bc0c12775222f5ff8dd6669df750f34e90dacb96 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 10 Aug 2016 11:42:10 +0200 Subject: [PATCH] Fix bug 0003250: Reset logs button not working. The file needs to be closed to be removed on Windows. --- coreapi/linphonecore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 72dd681f1..3df0bd63a 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -713,6 +713,7 @@ char * linphone_core_compress_log_collection(void) { void linphone_core_reset_log_collection(void) { char *filename; ortp_mutex_lock(&liblinphone_log_collection_mutex); + _close_log_collection_file(); clean_log_collection_upload_context(NULL); filename = ms_strdup_printf("%s/%s1.log", liblinphone_log_collection_path ? liblinphone_log_collection_path : LOG_COLLECTION_DEFAULT_PATH,