diff options
author | 2020-06-09 23:44:09 +0200 | |
---|---|---|
committer | 2020-06-10 16:16:08 +0200 | |
commit | 33318f7066e60c717ec14fe7a3bef25a6414ac36 (patch) | |
tree | efd1ecce1fc1b23deb8cd05bacd27eaa2f9813ed /taskmanager.pro | |
parent | b70f1326f483fc3e42a95f792c63d8d80ff0ce32 (diff) |
fix segfault on task removal from list
This commit fixes a segfault which manifests while
processing a received message to update the list of
active processes. This segfault always happens on
removal of a process and sometimes an error
associated with the model size for the TableView is
also displayed on the journal.
The fix includes the following changes:
- add checks on the received ResponseMessage to
discard invalid messages;
- align with other libqtappfw-core clients which use
QJsonObject::value() returning QJsonValue, instead of
QJsonObject::operator[] returning QJsonValueRef;
- create local list of tasks using emplacement
instead of insertion;
- simplify matching & updating old tasklist against
new one; remove flag and use std algorithm find_if
with lambda.
Bug-AGL: SPEC-3402
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Change-Id: Ic6bfaefed3fe91a8d29ef622ba7957b5bed5018a
Diffstat (limited to 'taskmanager.pro')
0 files changed, 0 insertions, 0 deletions