Fix memory leak of KQuickAddons::ConfigModule objects

Authored by davidedmundson on Oct 16 2019, 9:28 PM.

Description

Fix memory leak of KQuickAddons::ConfigModule objects

Summary:
When we create a KQuickAddons::ConfigModule in the factory we didn't
set a parent. It is passed to the wrapper KCModuleQML, and even though
the wrapper is memory manager the ConfigModule object itself was not.

This lead to another crash as the KAboutData is deleted twice, which was
fixed with an explicit copy

BUG: 412998

Test Plan:
qDebug inside the colours KCM destructor
It now appears when changing tabs

Reviewers: Plasma

Subscribers: kde-frameworks-devel

Tags: Frameworks

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

Details

Committed
davidedmundsonOct 17 2019, 9:09 AM
Differential Revision
D24716: Fix memory leak of KQuickAddons::ConfigModule objects
Parents
R295:1036179d484f: GIT_SILENT Upgrade KF5 version to 5.64.0.
Branches
Unknown
Tags
Unknown