Verified Commit 74bc480b authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Remove memory leak

parent 6063abe3
......@@ -58,9 +58,9 @@ void DesktopFileGenerator::createDesktopFile(const QString &name, const QString
desktopFile.sync();
// Refresh homescreen entries on Plasma Mobile
auto *buildsycoca = new QProcess();
buildsycoca->setProgram(QStringLiteral("kbuildsycoca5"));
buildsycoca->startDetached();
QProcess buildsycoca;
buildsycoca.setProgram(QStringLiteral("kbuildsycoca5"));
buildsycoca.startDetached();
}
void DesktopFileGenerator::storeIcon(const QString &url, const QString &fileName)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment