mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-16 17:11:37 +08:00
fix: rarely crash after install finished
in DownloadItem::slotAsyncInstall, QProcess should not be deleteLater since it is not pointer Log: fix rarely crash; move installExtraArg set before download started
This commit is contained in:
@@ -252,8 +252,5 @@ void DownloadItem::slotAsyncInstall(int t)
|
||||
ui->widget_spinner->hide();
|
||||
DownloadItem::isInstall = false;
|
||||
|
||||
installer.deleteLater();
|
||||
isInstall.deleteLater();
|
||||
|
||||
emit finished(error == 0 && !haveError && !notRoot);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user