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. Github-Pull: #9190 Rebased-From: e4f126a7ba66e7317718c30276dff6db92dc1986
This commit is contained in:
committed by
Luke Dashjr
parent
c12f4e93b9
commit
e4bea4fb84
@@ -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