ASAN: Fix leak in AppletQuickItem
Direct leak of 3960 byte(s) in 15 object(s) allocated from: #0 0x544cc0 in operator new(unsigned long) (/home/kfunk/devel/install/kf5/bin/plasmashell+0x544cc0) #1 0x7f0dd8a3e2bd in PlasmaQuick::AppletQuickItem::AppletQuickItem(Plasma::Applet*, QQuickItem*) /home/kfunk/devel/src/kf5/plasma-framework/src/plasmaquick/appletquickitem.cpp:472:9 #2 0x7f0dcb7b365b in AppletInterface::AppletInterface(DeclarativeAppletScript*, QList<QVariant> const&, QQuickItem*) /home/kfunk/devel/src/kf5/plasma-framework/src/scriptengines/qml/plasmoid/appletinterface.cpp:50:7 #3 0x7f0dcb7aede1 in DeclarativeAppletScript::init() /home/kfunk/devel/src/kf5/plasma-framework/src/scriptengines/qml/plasmoid/declarativeappletscript.cpp:87:27 ...
This commit is contained in:
parent
044d3472c2
commit
e3eafabd55
@ -515,6 +515,8 @@ AppletQuickItem::~AppletQuickItem()
|
||||
delete d->compactRepresentationExpanderItem;
|
||||
|
||||
AppletQuickItemPrivate::s_rootObjects.remove(d->qmlObject->rootContext());
|
||||
|
||||
delete d;
|
||||
}
|
||||
|
||||
AppletQuickItem *AppletQuickItem::qmlAttachedProperties(QObject *object)
|
||||
|
Loading…
Reference in New Issue
Block a user