From 7532be6692bcd59124c269999516469d7fc3d546 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Fri, 14 Apr 2017 14:53:47 +0200 Subject: [PATCH] Fix call log removal when using the database storage. --- coreapi/linphonecore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 4f7149ed6..e942641af 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -4595,8 +4595,8 @@ void linphone_core_remove_call_log(LinphoneCore *lc, LinphoneCallLog *cl) { linphone_core_delete_call_log(lc, cl); } #endif + lc->call_logs = bctbx_list_remove(lc->call_logs, cl); if (!call_logs_sqlite_db_found) { - lc->call_logs = bctbx_list_remove(lc->call_logs, cl); call_logs_write_to_config_file(lc); linphone_call_log_unref(cl); }