subsurface/map-widget
Berthold Stoeger 04593e8ec4 Cleanup: fix printGPSCoords signature and leaks
The printGPSCoords() function returns a copied C-style string. Since
the owndership is transferred to the caller, the correct return type
is "char *" instead of "const char *".

Thus a number of casts when calling free can be removed.

Moreover a number of callers didn't free the string and thus were
leaking memory. Fix them. Ultimately we might want two versions
of the function: one for QString, one for C-style strings.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-03-24 21:57:13 -07:00
..
qml Dive site: replace dive->dive_site_uuid by dive_site 2018-10-29 00:09:31 +00:00
qmlmapwidgethelper.cpp Cleanup: fix printGPSCoords signature and leaks 2019-03-24 21:57:13 -07:00
qmlmapwidgethelper.h Dive list: take pointer-to-dive_site instead of QVariant 2018-10-29 00:09:31 +00:00