about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-02 11:31:54 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-02 11:34:12 +0200
commite5ac12afa63457316793fa797d1a04202483ea05 (patch)
tree1b959a098338a89083c48f6310de7960cfffb4c9 /src/profanity.c
parent9774b0c5509193027d4f68df9dcb862455699cfc (diff)
downloadprofani-tty-e5ac12afa63457316793fa797d1a04202483ea05.tar.gz
Remove prefs_free_string()
It just does a free.
Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profanity.c b/src/profanity.c
index f3090f00..45cef2d0 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -152,7 +152,7 @@ _connect_default(const char *const account)
         char *pref_connect_account = prefs_get_string(PREF_CONNECT_ACCOUNT);
         if (pref_connect_account) {
             cmd_execute_connect(window, pref_connect_account);
-            prefs_free_string(pref_connect_account);
+            g_free(pref_connect_account);
         }
     }
 }
@@ -197,7 +197,7 @@ _init(char *log_level, char *config_file, char *log_file, char *theme_name)
     } else {
         char *theme = prefs_get_string(PREF_THEME);
         theme_init(theme);
-        prefs_free_string(theme);
+        g_free(theme);
     }
 
     ui_init();
id='n152' href='#n152'>152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204