1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-07-21 18:24:14 -04:00

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

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