Skip to content

Commit

Permalink
App: ensure GuiApplication object deletion at exit
Browse files Browse the repository at this point in the history
Related to GitHub #316
  • Loading branch information
HuguesDelorme committed Jan 17, 2025
1 parent 8133107 commit e6171c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
#include <QtWidgets/QApplication>

#include <fmt/format.h>
#include <gsl/util>
#include <cstdlib>
#include <fstream>
#include <iostream>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e6171c2

Please sign in to comment.