about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-01 14:50:07 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-01 14:50:07 +0200
commit2b5160a35130b2575f1a322f44bc366b6e9dac0f (patch)
tree6a5398957c0e79a3e190a80b6fd30f1c451d63cc /src/ui/console.c
parentb580b9ef119045f142fa4baa9689a1c5ce8864ef (diff)
downloadprofani-tty-2b5160a35130b2575f1a322f44bc366b6e9dac0f.tar.gz
console.c: Use prefs_free_string()
f9961677aaa8d2713a80127f95a3770b33af4cef  replaces prefs_free_string()
with g_free(). Both is correct but lets still use this.
Diffstat (limited to 'src/ui/console.c')
-rw-r--r--src/ui/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index be137d7b..587f7e48 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -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]);