diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2021-08-15 10:05:59 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-08-16 18:37:59 -0700 |
commit | f7e222718a6677912094c1994c1681bed5171b28 (patch) | |
tree | 9e2a599febd0532aa3bb1299a063fecf479f179d /icons/ead.png | |
parent | 75fdb8676bdc24a232351c207ea4cdd2e9caeb22 (diff) | |
download | subsurface-f7e222718a6677912094c1994c1681bed5171b28.tar.gz |
desktop: avoid crash when changing dive logs
If the last displayed dive had events, those DiveEventItems had slots connected
that would update those icons if things changed. When closing the dive log and
switching to a different one, those slots were still called and would then access
freed memory (the event structure from that old dive that is long gone by then).
This code explicitly deletes those DiveEventItems which also removes those signal
slot connections.
Fixes #3305
Sugested-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'icons/ead.png')
0 files changed, 0 insertions, 0 deletions