Page MenuHomePhabricator

QmitkDataStorageListModel does not unregister its observers properly
Closed, ResolvedPublic

Description

Since T19571 QmitkDataStorageListModel registers new observers but does not properly unregister all of them due to a wrong implementation.
This leads to problems when the list model is deleted before the observed object and the observed object tries to call into the deleted list model.

The fix is trivial and fixes observed application errors (different application than mitkWorkbench).

Event Timeline

User maleike has pushed new remote branch:

bug-19835-qmitkdatastoragelistmodel-dangling-observers

[88b2ba]: Merge branch 'bug-19835-qmitkdatastoragelistmodel-dangling-observers'

Merged commits:

2016-07-28 15:55:53 Daniel Maleike [651a15]
Fix missing removal of previously created observers.

Not removing those would lead to "dangling observer pointers"
(i.e. crash) in some use cases.