mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 17:56:21 +00:00
prefs: Don't mix allocator types
This commit is contained in:
@@ -164,7 +164,7 @@ prefs_get_string(preference_t pref)
|
|||||||
|
|
||||||
if (result == NULL) {
|
if (result == NULL) {
|
||||||
if (def) {
|
if (def) {
|
||||||
return strdup(def);
|
return g_strdup(def);
|
||||||
} else {
|
} else {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -177,7 +177,7 @@ void
|
|||||||
prefs_free_string(char *pref)
|
prefs_free_string(char *pref)
|
||||||
{
|
{
|
||||||
if (pref) {
|
if (pref) {
|
||||||
free(pref);
|
g_free(pref);
|
||||||
}
|
}
|
||||||
pref = NULL;
|
pref = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user