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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user