Fixes minor memory leaks

Authored by hallas on Mar 28 2019, 12:55 PM.

Description

Fixes minor memory leaks

Summary:
Fixes a few minor memory leaks found with address sanitizer.
The newTabButton and closeTabButton was not passed a parent and is not
deleted in the destructor of TabbedViewContainer which will cause them
to be leaked when closing a tab. Instead pass the TabbedViewContainer as
the parent.
The same goes for the profileMenu, it was not passed a parent pointer at
contruction and the setMenu function doesn't take ownership of it, so
therefore it was also leaked.

Test Plan:
Compile konsole with address sanitizer.
Open and close konsole.

Reviewers: Konsole, hindenburg

Reviewed By: Konsole, hindenburg

Subscribers: hindenburg, konsole-devel

Tags: Konsole

Differential Revision: https://phabricator.kde.org/D19634

Details

Committed
hindenburgMar 28 2019, 1:14 PM
Reviewer
Konsole
Differential Revision
D19634: Fixes minor memory leaks
Parents
R319:f1e7d8966735: Use QTEST_GUILESS_MAIN
Branches
Unknown
Tags
Unknown