1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

console.c: Use prefs_free_string()

f9961677aa  replaces prefs_free_string()
with g_free(). Both is correct but lets still use this.
This commit is contained in:
Michael Vetter 2020-07-01 14:50:07 +02:00
parent b580b9ef11
commit 2b5160a351

View File

@ -2068,7 +2068,7 @@ cons_executable_setting(void)
{
char *avatar = prefs_get_string(PREF_AVATAR_CMD);
cons_show("'/avatar' command (/executable avatar) : %s", avatar);
g_free(avatar);
prefs_free_string(avatar);
char **urlopen = prefs_get_string_list_with_option(PREF_URL_OPEN_CMD, "");
cons_show("Default '/url open' command (/executable urlopen) : %s", urlopen[1]);