From 6c2c125332dab70f3a9e5d34f3b9732b94925aff Mon Sep 17 00:00:00 2001 From: abc Date: Sat, 2 Mar 2024 08:45:58 +0800 Subject: [PATCH] fix crash before exit program with vs2019 --- example/src/helper/Log.cpp | 5 +++++ example/src/helper/Log.h | 1 + example/src/main.cpp | 1 + 3 files changed, 7 insertions(+) diff --git a/example/src/helper/Log.cpp b/example/src/helper/Log.cpp index c465cd2b..497e302f 100644 --- a/example/src/helper/Log.cpp +++ b/example/src/helper/Log.cpp @@ -207,3 +207,8 @@ void Log::setup(const QString &app,int level) qInfo()<<"[LOG_PATH]"<applicationFilePath(), QStringList()); } + Log::teardown(); return exec; }