Merge remote-tracking branch 'pasis/prefs-alloc'

This commit is contained in:
James Booth
2015-06-24 20:14:00 +01:00

View File

@@ -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;
}