Commit ff595cde authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix crash

parent 706aad16
Pipeline #28890 failed with stage
in 33 minutes and 6 seconds
......@@ -38,6 +38,7 @@ void WebEnginePartHtmlWriter::begin()
}
delete mTempFile;
mTempFile = nullptr;
BufferedHtmlWriter::begin();
MessageViewer::WebEngineEmbedPart::self()->clear();
......
......@@ -325,7 +325,9 @@ void NodeHelper::forceCleanTempFiles()
void NodeHelper::removeTempFiles()
{
//Don't delete as it will be deleted in class
mAttachmentFilesDir->removeTempFiles();
if (mAttachmentFilesDir) {
mAttachmentFilesDir->removeTempFiles();
}
mAttachmentFilesDir = new AttachmentTemporaryFilesDirs();
mListAttachmentTemporaryDirs.append(mAttachmentFilesDir);
}
......
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