From e6171c2636ce7cb958616869e25db486e349ffcf Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Fri, 17 Jan 2025 16:40:39 +0100 Subject: [PATCH] App: ensure GuiApplication object deletion at exit Related to GitHub #316 --- src/app/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index 69b9b603..e8e4d2d2 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -56,6 +56,7 @@ #include #include +#include #include #include #include @@ -376,6 +377,7 @@ static int runApp(QCoreApplication* qtApp) // Initialize Gui application auto guiApp = new GuiApplication(app); + auto _ = gsl::finally([=]{ delete guiApp; }); initGui(guiApp); // Register providers to query document tree node properties