Commit 081a3001 authored by David Edmundson's avatar David Edmundson Committed by Nate Graham
Browse files

[kcms/user] Fix leaking model


(cherry picked from commit a191a4a6)
parent 51e5322e
......@@ -46,7 +46,7 @@ K_PLUGIN_FACTORY_WITH_JSON(KCMUserFactory, "kcm_users.json", registerPlugin<KCMU
KCMUser::KCMUser(QObject *parent, const QVariantList &args)
: KQuickAddons::ConfigModule(parent, args),
m_dbusInterface(new OrgFreedesktopAccountsInterface(QStringLiteral("org.freedesktop.Accounts"), QStringLiteral("/org/freedesktop/Accounts"), QDBusConnection::systemBus(), this)),
m_model(new UserModel())
m_model(new UserModel(this))
{
KAboutData* about = new KAboutData(QStringLiteral("kcm_users"), i18n("Manage user accounts"),
QStringLiteral("0.1"), QString(), KAboutLicense::GPL);
......
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