Refactor and fix memory leak in theme_init #6

Manually merged
jabber.developer merged 3 commits from fix/theme-mem-leak into master 2025-06-24 15:37:14 +00:00
Showing only changes of commit 7d1e1c726d - Show all commits

View File

@@ -156,14 +156,7 @@ sv_ev_roster_received(void)
if (!p_gpg_valid_key(account->pgp_keyid, &err_str)) {
cons_show_error("Invalid PGP key ID specified: %s, %s", account->pgp_keyid, err_str);
}
// Redraw the screen after entry of the PGP secret key, but not init
ProfWin* win = wins_get_current();
auto_gchar gchar* theme = prefs_get_string(PREF_THEME);
win_redraw(win);
theme_init(theme);
ui_resize();
ui_show_roster();
}
account_free(account);
#endif