1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

prefs: Don't mix allocator types

This commit is contained in:
Dmitry Podgorny 2015-06-24 12:50:04 +00:00
parent 815ca16f48
commit 592cf2c69b

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