about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config/preferences.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index fef0db0b..9ac5e490 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -164,7 +164,7 @@ prefs_get_string(preference_t pref)
 
     if (result == NULL) {
         if (def) {
-            return strdup(def);
+            return g_strdup(def);
         } else {
             return NULL;
         }
@@ -177,7 +177,7 @@ void
 prefs_free_string(char *pref)
 {
     if (pref) {
-        free(pref);
+        g_free(pref);
     }
     pref = NULL;
 }