Free account_name preference on autoconnect

This commit is contained in:
James Booth
2014-06-17 22:22:35 +01:00
parent fa0be4e50e
commit 4a485a64f9
2 changed files with 12 additions and 8 deletions

View File

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