Fix crash during shutdown

Authored by hallas on Feb 16 2019, 3:50 PM.

Description

Fix crash during shutdown

Summary:
Fix crash during shutdown. The root cause is that when Dolphin in stopped as
part of an activity, the KItemListViewAccessible destructor is called after
QApplication::exec has returned causing Qt to already having cleaned up the
QAccessibleInterface instances kept in KItemListViewAccessible. Instead of
storing the pointers to QAccessibleInterface we store the QAccessible::Id so
that we can use the QAccessible::deleteAccessibleInterface function for
deleting the instances.

BUG: 402784

Test Plan:
I wasn't able to reproduce the crash in the first place, but I have just
opened and closed Dolphin a few times and verified the the QAccessibleInterface
instances are correctly cleaned up.

Reviewers: Dolphin, elvisangelaccio, ngraham

Reviewed By: Dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: Dolphin

Differential Revision: https://phabricator.kde.org/D19083

Details

Committed
hallasFeb 18 2019, 7:58 AM
Reviewer
Dolphin
Differential Revision
D19083: Fix crash during shutdown
Parents
R318:6e88d7cef072: Merge branch 'Applications/18.12'
Branches
Unknown
Tags
Unknown