diff options
author | James Booth <boothj5@gmail.com> | 2015-06-24 20:14:00 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-06-24 20:14:00 +0100 |
commit | 026b0885b586e3eda5cf3cdb075e8d3970731cae (patch) | |
tree | 57289f16a7333a8690c81be851864340cc7b07d0 /src | |
parent | 2becd9170e1ccb52a5f7ab48ab87ad1001184a13 (diff) | |
parent | 592cf2c69b9ccacb6797cf52fd3a855af868e282 (diff) | |
download | profani-tty-026b0885b586e3eda5cf3cdb075e8d3970731cae.tar.gz |
Merge remote-tracking branch 'pasis/prefs-alloc'
Diffstat (limited to 'src')
-rw-r--r-- | src/config/preferences.c | 4 |
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; } |