Fix memory leak when deleting MessageViewer and its NodeHelper.
ClosedPublic

Authored by dfaure on Jul 31 2016, 6:57 PM.

Details

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.

Diff Detail

Repository
R94 PIM: Message Library
Branch
messagelib-memleak
Lint
No Linters Available
Unit
No Unit Test Coverage
dfaure updated this revision to Diff 5588.Jul 31 2016, 6:57 PM
dfaure retitled this revision from to Fix memory leak when deleting MessageViewer and its NodeHelper..
dfaure updated this object.
dfaure edited the test plan for this revision. (Show Details)
dfaure added a reviewer: mlaurent.
dfaure added a subscriber: KDE PIM.
Restricted Application added a project: KDE PIM. · View Herald TranscriptJul 31 2016, 6:57 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
mlaurent accepted this revision.Jul 31 2016, 7:14 PM
mlaurent edited edge metadata.

Seems ok for me.
Thanks.

This revision is now accepted and ready to land.Jul 31 2016, 7:14 PM
dfaure closed this revision.Jul 31 2016, 7:48 PM