Commit 52ca4057 authored by Laurent Montel's avatar Laurent Montel 😁

Fix mem leak

parent c356f71c
......@@ -140,6 +140,7 @@ void SieveScriptDebuggerFrontEndWidget::slotDebugScript()
QTemporaryFile *temporaryFile = new QTemporaryFile();
if (!temporaryFile->open()) {
mSieveScriptDebuggerWarning->setErrorMessage(i18n("Impossible to open temporary file."));
delete temporaryFile;
return;
}
mDebugScript->setEnabled(false);
......
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