mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 21:46:21 +00:00
Free account_name preference on autoconnect
This commit is contained in:
@@ -171,7 +171,7 @@ prefs_get_string(preference_t pref)
|
||||
char *result = g_key_file_get_string(prefs, group, key, NULL);
|
||||
|
||||
if (result == NULL) {
|
||||
return def;
|
||||
return strdup(def);
|
||||
} else {
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user