Commit 26d30126 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Ensure Core instances are properly deleted

parent b96cd637
......@@ -34,6 +34,7 @@
#include "Project/ProjectManager.h"
#include "Main/Project.h"
#include "Backend/IBackend.h"
#include "Main/Core.h"
#include "Gui/MainWindow.h"
#include "Gui/IntroDialog.h"
......@@ -194,9 +195,11 @@ int
VLMCmain( int argc, char **argv )
{
#ifdef WITH_GUI
return VLMCGuimain( argc, argv );
int res = VLMCGuimain( argc, argv );
#else
return VLMCCoremain( argc, argv );
int res = VLMCCoremain( argc, argv );
#endif
Core::destroyInstance();
return res;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment