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>
This commit is contained in:
Lubomir I. Ivanov 2015-11-13 15:20:48 +02:00 committed by Dirk Hohndel
parent e0f4e61030
commit 84b7a37869

View file

@ -313,11 +313,5 @@ void copy_prefs(struct preferences *src, struct preferences *dest)
*/ */
void free_prefs(void) void free_prefs(void)
{ {
free((void*)prefs.default_cylinder); // nop
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);
} }