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 17:43:17 (GMT)
commit00283cb1f050fba17b5603038496271afc5277f9 (patch)
tree3edc7263a81f296af1d73354cbaa2ecc995ee241
parent2ee5bc147480baf205611d333fe68233f9e1aa47 (diff)
Fix memory leak when deleting MessageViewer and its NodeHelper.
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.
-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)