diff --git a/appmanagerjob.cpp b/appmanagerjob.cpp index cbaafcf491c93102c7d55f2c63c3c2a2ffdad4fa..323591525fcbfad94e8d312e012264b27ce0a4d6 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();