It was never clear what was a pointer to a static string from libdivecomputer and what was allocated. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Replace some of the memory management by C++ idioms. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>