From a0943d32b461b6c1b2055906d9580ee86c60dadd Mon Sep 17 00:00:00 2001 From: keke <243768648@qq.com> Date: Wed, 4 May 2022 13:59:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=8D=B8=E8=BD=BD=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appmanagerjob.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/appmanagerjob.cpp b/appmanagerjob.cpp index cbaafcf..3235915 100644 --- a/appmanagerjob.cpp +++ b/appmanagerjob.cpp @@ -368,7 +368,12 @@ void AppManagerJob::uninstallPkg(const QString &pkgName) QString error = proc->readAllStandardError(); if (!error.isEmpty()) { - qDebug() << Q_FUNC_INFO << QString("uninstall %1 failed! ").arg(pkgName) << error; + qInfo() << Q_FUNC_INFO << QString("uninstall %1 failed! ").arg(pkgName) << error; + + proc->close(); + proc->deleteLater(); + proc = nullptr; + return; } proc->close(); -- Gitee