about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-06-24 20:14:00 +0100
committerJames Booth <boothj5@gmail.com>2015-06-24 20:14:00 +0100
commit026b0885b586e3eda5cf3cdb075e8d3970731cae (patch)
tree57289f16a7333a8690c81be851864340cc7b07d0 /src
parent2becd9170e1ccb52a5f7ab48ab87ad1001184a13 (diff)
parent592cf2c69b9ccacb6797cf52fd3a855af868e282 (diff)
downloadprofani-tty-026b0885b586e3eda5cf3cdb075e8d3970731cae.tar.gz
Merge remote-tracking branch 'pasis/prefs-alloc'
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;
 }