Commit 5b2d4af4 authored by David Hallas's avatar David Hallas

Fixes minor memory leak in the KNSBackend

Summary:
Fixes minor memory leak in the KNSBackend, the destructor of KNSBackend
failed to delete the contents of the m_rootCategories vector.

Test Plan:
Build with -fsanitize=address
Open and close Discover

Reviewers: apol

Reviewed By: apol

Subscribers: apol, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D15145
parent 2bd91b93
......@@ -161,7 +161,10 @@ KNSBackend::KNSBackend(QObject* parent, const QString& iconName, const QString &
m_rootCategories = { addonsCategory };
}
KNSBackend::~KNSBackend() = default;
KNSBackend::~KNSBackend()
{
qDeleteAll(m_rootCategories);
}
void KNSBackend::markInvalid(const QString &message)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment