Commit 7e646b44 authored by Jan Möbius's avatar Jan Möbius

Produce a cleaner crash

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16194 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 42ca8acf
......@@ -1179,9 +1179,16 @@ void Core::slotExit() {
void Core::exitFailure() {
// Call clearAll() before closing application
// in order to call all object's destructors...
clearAll();
// Cleanup the widgets here
delete coreWidget_;
// Kill application with an error
// No need to clean up here anyway
exit(EXIT_FAILURE);
qApp->exit(EXIT_FAILURE);
}
......
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