Skip to content

Commit

Permalink
Fix crash when shutting down the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
besser82 committed Feb 5, 2017
1 parent 5cb91cd commit afae8df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/YQUI.cc
Expand Up @@ -345,7 +345,7 @@ YQUI::~YQUI()
if ( qApp ) // might already be reset to 0 internally from Qt
{
qApp->exit();
delete qApp;
qApp->deleteLater();
}

delete _signalReceiver;
Expand All @@ -356,8 +356,8 @@ YQUI::uiThreadDestructor()
{
if ( qApp ) // might already be reset to 0 internally from Qt
{
qApp->exit();
delete qApp;
qApp->exit();
qApp->deleteLater();
}
}

Expand Down

0 comments on commit afae8df

Please sign in to comment.