diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-26 18:03:23 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-29 13:03:31 -0700 |
commit | d498fcad61253591c653e6285173b653483926bf (patch) | |
tree | 9b8b7f338b00376f7c636f778509003d86d7a5a7 /gpl-2.0.txt | |
parent | af00361929c00febea42d067785ea1a76c493e7b (diff) | |
download | subsurface-d498fcad61253591c653e6285173b653483926bf.tar.gz |
Printing: fix memory leak
For printing, DiveObjectHelpers are allocated and pointers to these
are stored in a QVariantList. The objects are never freed. To fix
this leak, keep the objects in a std::list<>.
std::list<> was chosen because
1) Pointers to elements stay valid during its lifetime.
2) Objects can be constructed directly in the list with emplace_back()
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'gpl-2.0.txt')
0 files changed, 0 insertions, 0 deletions