diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-16 07:50:38 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-16 06:20:33 -0400 |
commit | 065c41b8347a4343d0f616542eadbb72f3d04bf1 (patch) | |
tree | dc5d0cd0e404cdb40043868d120405b9fca4c5c8 /core/worldmap-save.h | |
parent | c61cf991e01f562cbcbd228c42e057db6690fea8 (diff) | |
download | subsurface-065c41b8347a4343d0f616542eadbb72f3d04bf1.tar.gz |
Core: copy / free serial and fw_version items of struct divecomputer
The serial and fw_version strings of struct divecomputer were copied
by pointer. This worked because they were never freed or modified.
Instead, do a deep copy of the strings and free them when appropriate.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/worldmap-save.h')
0 files changed, 0 insertions, 0 deletions