Commit 4dcac6fa authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Clear sharedpointer

parent bbe60ed9
Pipeline #24797 passed with stage
in 64 minutes and 33 seconds
......@@ -343,7 +343,8 @@ QString GrantleeHeaderFormatter::toHtml(const QStringList &displayExtraHeaders,
return format(absolutPath, headerTemplate, displayExtraHeaders, isPrinting, style, message);
}
QString GrantleeHeaderFormatter::format(const QString &absolutePath, const Grantlee::Template &headerTemplate, const QStringList &displayExtraHeaders, bool isPrinting, const MessageViewer::HeaderStyle *style, KMime::Message *message, bool showEmoticons) const
QString GrantleeHeaderFormatter::format(const QString &absolutePath, const Grantlee::Template &headerTemplate, const QStringList &displayExtraHeaders,
bool isPrinting, const MessageViewer::HeaderStyle *style, KMime::Message *message, bool showEmoticons) const
{
QVariantHash headerObject;
const auto nodeHelper = style->nodeHelper();
......
......@@ -267,6 +267,7 @@ ViewerPrivate::~ViewerPrivate()
mViewer = nullptr;
mNodeHelper->forceCleanTempFiles();
qDeleteAll(mListMailSourceViewer);
mMessage.clear();
delete mNodeHelper;
}
......
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