Fix a few memory leaks ASAN: Fix leak in XWindowTasksModel
ClosedPublic

Authored by kfunk on Nov 19 2018, 10:35 PM.

Details

Summary

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
...

ASAN: Fix leak in ShellCorona

Trace:
Indirect leak of 48 byte(s) in 1 object(s) allocated from:

#0 0x544cc0 in operator new(unsigned long) (/home/kfunk/devel/install/kf5/bin/plasmashell+0x544cc0)
#1 0x5e1a95 in ShellCorona::checkAddPanelAction(QStringList const&) /home/kfunk/devel/src/kf5/plasma-workspace/shell/shellcorona.cpp:1728:27
#2 0x5dac7e in ShellCorona::ShellCorona(QObject*) /home/kfunk/devel/src/kf5/plasma-workspace/shell/shellcorona.cpp:180:5
#3 0x65c31d in ShellManager::loadHandlers() /home/kfunk/devel/src/kf5/plasma-workspace/shell/shellmanager.cpp:93:21
...

Diff Detail

Repository
R120 Plasma Workspace
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 5159
Build 5177: arc lint + arc unit
kfunk created this revision.Nov 19 2018, 10:35 PM
Restricted Application added a project: Plasma. · View Herald TranscriptNov 19 2018, 10:35 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
kfunk requested review of this revision.Nov 19 2018, 10:35 PM
davidedmundson accepted this revision.Nov 19 2018, 10:44 PM
davidedmundson added a subscriber: davidedmundson.

Thanks!

This revision is now accepted and ready to land.Nov 19 2018, 10:44 PM
This revision was automatically updated to reflect the committed changes.