qt: Avoid splash-screen related memory leak

Make splash screen queue its own deletion when it receives the finished
command, instead of relying on WA_DeleteOnClose which doesn't work under
these circumstances.
This commit is contained in:
Wladimir J. van der Laan
2016-11-19 11:08:19 +01:00
parent 693384eedb
commit e4f126a7ba
2 changed files with 3 additions and 3 deletions
+1
View File
@@ -147,6 +147,7 @@ void SplashScreen::slotFinish(QWidget *mainWin)
if (isMinimized())
showNormal();
hide();
deleteLater(); // No more need for this
}
static void InitMessage(SplashScreen *splash, const std::string &message)