summaryrefslogtreecommitdiffstats
path: root/smtk-import
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-04-26 18:03:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-29 13:03:31 -0700
commitd498fcad61253591c653e6285173b653483926bf (patch)
tree9b8b7f338b00376f7c636f778509003d86d7a5a7 /smtk-import
parentaf00361929c00febea42d067785ea1a76c493e7b (diff)
downloadsubsurface-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 'smtk-import')
0 files changed, 0 insertions, 0 deletions