<table><tr><td style="">hallas created this revision.<br />hallas added a reviewer: Konsole.<br />Herald added a project: Konsole.<br />Herald added a subscriber: konsole-devel.<br />hallas requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D19634">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Fixes a few minor memory leaks found with address sanitizer.<br />
The newTabButton and closeTabButton was not passed a parent and is not<br />
deleted in the destructor of TabbedViewContainer which will cause them<br />
to be leaked when closing a tab. Instead pass the TabbedViewContainer as<br />
the parent.<br />
The same goes for the profileMenu, it was not passed a parent pointer at<br />
contruction and the setMenu function doesn't take ownership of it, so<br />
therefore it was also leaked.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Compile konsole with address sanitizer.<br />
Open and close konsole.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix_minor_memory_leaks (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19634">https://phabricator.kde.org/D19634</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/ViewContainer.cpp</div></div></div><br /><div><strong>To: </strong>hallas, Konsole<br /><strong>Cc: </strong>konsole-devel, gennad, maciejn, thsurrel, ngraham, maximilianocuria, hindenburg<br /></div>