Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 38a50ce7 authored by Kevin Funk's avatar Kevin Funk

ASAN: Fix leak in XWindowTasksModel

Trace:
Direct leak of 24 byte(s) in 3 object(s) allocated from:
    #0 0x544cc0 in operator new(unsigned long) (/home/kfunk/devel/install/kf5/bin/plasmashell+0x544cc0)
    #1 0x7fe4f0e82df9 in TaskManager::XWindowTasksModel::Private::windowInfo(unsigned long long) /home/kfunk/devel/src/kf5/plasma-workspace/libtaskmanager/xwindowtasksmodel.cpp:419:25
    #2 0x7fe4f0e87e69 in TaskManager::XWindowTasksModel::data(QModelIndex const&, int) const /home/kfunk/devel/src/kf5/plasma-workspace/libtaskmanager/xwindowtasksmodel.cpp:646:38
    ...
parent 38e6e0a0
......@@ -253,7 +253,7 @@ void XWindowTasksModel::Private::removeWindow(WId window)
q->beginRemoveRows(QModelIndex(), row, row);
windows.removeAt(row);
transientsDemandingAttention.remove(window);
windowInfoCache.remove(window);
delete windowInfoCache.take(window);
appDataCache.remove(window);
usingFallbackIcon.remove(window);
delegateGeometries.remove(window);
......
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