Commit b96be01b authored by Laurent Montel's avatar Laurent Montel
Browse files

Fix mem leak found by ASAN

parent ef8a9371
......@@ -2175,8 +2175,6 @@ void ViewerPrivate::slotShowMessageSource()
if (!mMessage) {
QPointer<MailSourceWebEngineViewer> viewer = new MailSourceWebEngineViewer; // deletes itself upon close
viewer->setWindowTitle(i18nc("@title:window", "Message as Plain Text"));
......@@ -100,7 +100,7 @@ public:
/** Return a modified message (node tree) starting from @param topLevelNode that has the original nodes and the extra nodes.
The caller has the responsibility to delete the new message.
KMime::Message *messageWithExtraContent(KMime::Content *topLevelNode);
Q_REQUIRED_RESULT KMime::Message *messageWithExtraContent(KMime::Content *topLevelNode);
/** Get a QTextCodec suitable for this message part */
const QTextCodec *codec(KMime::Content *node);
Supports Markdown
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