diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2017-11-16 22:40:50 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-11-17 15:32:38 +0100 |
commit | 5ad6e168c60c0ae184f73c0f7a4c8a3ebd66315d (patch) | |
tree | 12a9416048ebaefa7d84878996ec25a3c1bb1316 /android-mobile | |
parent | 9ec7aa7fd730da140639052e8831ff5c910fc6cb (diff) | |
download | subsurface-5ad6e168c60c0ae184f73c0f7a4c8a3ebd66315d.tar.gz |
Fix memory leaks in SettingsObjectWrapper.cpp
Free a bunch of C-style strings before assigning newly copied strings.
One case was particularly buggy:
prefs.locale.use_system_language = copy_string(qPrintable(value));
Note that prefs.locale.use_system_language is a bool, which of course
always evaluates to true! Probably nobody noticed because a restart
is required when changing locale.
Moreover remove a few double-semicolons.
Diffstat (limited to 'android-mobile')
0 files changed, 0 insertions, 0 deletions