Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
b96be01b
Commit
b96be01b
authored
Jun 25, 2020
by
Laurent Montel
Browse files
Fix mem leak found by ASAN
parent
ef8a9371
Changes
2
Hide whitespace changes
Inline
Side-by-side
messageviewer/src/viewer/viewer_p.cpp
View file @
b96be01b
...
...
@@ -2175,8 +2175,6 @@ void ViewerPrivate::slotShowMessageSource()
if
(
!
mMessage
)
{
return
;
}
mNodeHelper
->
messageWithExtraContent
(
mMessage
.
data
());
QPointer
<
MailSourceWebEngineViewer
>
viewer
=
new
MailSourceWebEngineViewer
;
// deletes itself upon close
mListMailSourceViewer
.
append
(
viewer
);
viewer
->
setWindowTitle
(
i18nc
(
"@title:window"
,
"Message as Plain Text"
));
...
...
mimetreeparser/src/nodehelper.h
View file @
b96be01b
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment