mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 20:16:16 +00:00
When just assigning one structure to the other we copy the string pointers. If we then modify those strings in the copy, we happily free the strings of the original. And then resetting the preferences equally happily reused those strings, pointing to long since freed memory. I think what I did now is excessive for the current use case in that it copies a ton of strings that are unset in the default_prefs. But I figured this is a rarely used function and I might as well do it correctly. Also, once we implement multi user support with per user preferences we will be copying completely populated preferences around (at least that's my guess). Fixes #940 Signed-off-by: Dirk Hohndel <dirk@hohndel.org> |
||
---|---|---|
.. | ||
testdivesiteduplication.cpp | ||
testdivesiteduplication.h | ||
testgitstorage.cpp | ||
testgitstorage.h | ||
testgpscoords.cpp | ||
testgpscoords.h | ||
testparse.cpp | ||
testparse.h | ||
testplan.cpp | ||
testplan.h | ||
testprofile.cpp | ||
testprofile.h | ||
testrenumber.cpp | ||
testrenumber.h | ||
testunitconversion.cpp | ||
testunitconversion.h |