summaryrefslogtreecommitdiffstats
path: root/core/format.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-16 07:41:48 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-16 06:20:33 -0400
commitc61cf991e01f562cbcbd228c42e057db6690fea8 (patch)
tree708ed38ed96d92c97f8bcd2df0f0d86849c76e7e /core/format.cpp
parent763c3683e58684f296d6b66835ca6d84e14b3900 (diff)
downloadsubsurface-c61cf991e01f562cbcbd228c42e057db6690fea8.tar.gz
Core: copy and free extra_data of dive computer structure
On dive computer copy, the extra data (a list of key/value pairs) was simply copied as a pointer. This worked because the list was never freed nor modified. Copy and free the list on dive computer copy and free, respectively. This made it necessary to move the STRUCTURE_LIST_* macros up in the dive.c file. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/format.cpp')
0 files changed, 0 insertions, 0 deletions