summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2016-07-31 17:43:17 (GMT)
committerDavid Faure <faure@kde.org>2016-07-31 19:48:24 (GMT)
commit28b2cb85b596c0a112949b3ae2134fe5a6ea7c40 (patch)
tree85a359cf33b3555bce8224afc3e296b13e3799d4
parente9928a6d53a5cca87211dc9093527285759a9b2c (diff)
parent00283cb1f050fba17b5603038496271afc5277f9 (diff)
Fix memory leak when deleting MessageViewer and its NodeHelper.
Summary: The Interface::BodyPartMemento(s) were not deleted. Since they are deleted when switching messages, this is no severe leak, it just showed up in a unittest. Test Plan: qDebug in ctor/dtor, from unittest. Running kmail still works. Reviewers: mlaurent Reviewed By: mlaurent Subscribers: kde-pim, #kde_pim Tags: #kde_pim Differential Revision: https://phabricator.kde.org/D2319
-rw-r--r--mimetreeparser/src/viewer/nodehelper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/mimetreeparser/src/viewer/nodehelper.cpp b/mimetreeparser/src/viewer/nodehelper.cpp
index ecf39f6..5942360 100644
--- a/mimetreeparser/src/viewer/nodehelper.cpp
+++ b/mimetreeparser/src/viewer/nodehelper.cpp
@@ -85,6 +85,7 @@ NodeHelper::~NodeHelper()
delete mAttachmentFilesDir;
mAttachmentFilesDir = 0;
}
+ clear();
}
void NodeHelper::setNodeProcessed(KMime::Content *node, bool recurse)