From 592cf2c69b9ccacb6797cf52fd3a855af868e282 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Wed, 24 Jun 2015 12:50:04 +0000 Subject: [PATCH] prefs: Don't mix allocator types --- src/config/preferences.c | 4 ++-- 1 file 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; }