Refactor and fix memory leak in theme_init
#6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user