1
0
Fork 0

prefs_free_string() doesnt need to check if pref is NULL

g_free(NULL); is noop.
This commit is contained in:
Michael Vetter 2020-07-01 14:42:35 +02:00
parent 233494d01e
commit b580b9ef11
1 changed files with 1 additions and 4 deletions

View File

@ -537,13 +537,10 @@ prefs_get_string_list_with_option(preference_t pref, gchar *option)
}
}
void
prefs_free_string(char *pref)
{
if (pref) {
g_free(pref);
}
g_free(pref);
}
void