Commit 50be3aeb authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[FIX] not all pointers where released during kernel shutdown. This is done now.

parent db666eea
......@@ -139,6 +139,17 @@ void WKernel::finalize()
WLogger::getLogger()->addLogMessage( "Stopping Data Handler", "Kernel", LL_INFO );
WDataHandler::getDataHandler()->clear();
WLogger::getLogger()->addLogMessage( "Releasing GUI", "Kernel", LL_DEBUG );
m_gui.reset();
WLogger::getLogger()->addLogMessage( "Releasing GraphicsEngine", "Kernel", LL_DEBUG );
m_graphicsEngine.reset();
WLogger::getLogger()->addLogMessage( "Releasing Selection System", "Kernel", LL_DEBUG );
m_roiManager.reset();
m_selectionManager.reset();
WLogger::getLogger()->addLogMessage( "Releasing Module System", "Kernel", LL_DEBUG );
m_moduleFactory.reset();
m_moduleContainer.reset();
}
void WKernel::threadMain()
......
......@@ -258,7 +258,7 @@ int WQt4Gui::run()
// signal everybody to shut down properly.
WKernel::getRunningKernel()->wait( true );
WKernel::getRunningKernel()->getGraphicsEngine()->wait( true );
m_ge->wait( true );
m_loggerConnection.disconnect();
......
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