mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
prefs_free_string() doesnt need to check if pref is NULL
g_free(NULL); is noop.
This commit is contained in:
parent
233494d01e
commit
b580b9ef11
@ -537,14 +537,11 @@ prefs_get_string_list_with_option(preference_t pref, gchar *option)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
prefs_free_string(char *pref)
|
||||
{
|
||||
if (pref) {
|
||||
g_free(pref);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
prefs_set_string(preference_t pref, char *value)
|
||||
|
Loading…
Reference in New Issue
Block a user