mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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:
parent
e0f4e61030
commit
84b7a37869
1 changed files with 1 additions and 7 deletions
|
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue