Fix bug 0003250: Reset logs button not working.

The file needs to be closed to be removed on Windows.
This commit is contained in:
Ghislain MARY 2016-08-10 11:42:10 +02:00
parent 8d21acd7f0
commit bc0c127752

View file

@ -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,