diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-11-13 15:20:48 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-06 09:31:02 -0800 |
commit | cd81f372001a0c21e4a7cf685341f7be92ef06e9 (patch) | |
tree | d5fa82859c4ad43c5e60faf323d3b6a7ce06a4a6 | |
parent | d48a67725980629aa99b2ebdac734a0f0118e5ab (diff) | |
download | subsurface-cd81f372001a0c21e4a7cf685341f7be92ef06e9.tar.gz |
subsurfacestartup.c: leave free_prefs() empty
There is a bug on OSX where free() is called on non-allocated
memory in free_prefs(). Most of the preferences are not freed
in free_prefs() while copy_string() is used on them, so let's
not free() any pointers in free_prefs() and leave them
as one-time leaks.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | subsurfacestartup.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/subsurfacestartup.c b/subsurfacestartup.c index 580d8bc84..9e55cd00c 100644 --- a/subsurfacestartup.c +++ b/subsurfacestartup.c @@ -308,11 +308,5 @@ void copy_prefs(struct preferences *src, struct preferences *dest) */ void free_prefs(void) { - free((void*)prefs.default_cylinder); - free((void*)prefs.divelist_font); - free((void*)prefs.cloud_storage_password); - free(prefs.proxy_host); - free(prefs.proxy_user); - free(prefs.proxy_pass); - free(prefs.userid); + // nop } |