talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 306bf2ef35f2d074d786a85bcf5454cfc5f4b2e1
parent 075d16af79053b6e867d982e946f1db760cdc0c3
Author: Paul <paul@claws-mail.org>
Date:   Mon,  8 Jul 2013 17:05:09 +0100

fix bug 2957, 'Double-free in account preferences'

Diffstat:
Msrc/prefs_account.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/prefs_account.c b/src/prefs_account.c @@ -3700,10 +3700,9 @@ PrefsAccount *prefs_account_open(PrefsAccount *ac_prefs, gboolean *dirty) if (!cancelled && dirty != NULL) *dirty = TRUE; - if (cancelled && new_account) { - prefs_account_free(ac_prefs); + if (cancelled && new_account) return NULL; - } else { + else { if (ac_prefs->recv_server) g_strstrip(ac_prefs->recv_server); if (ac_prefs->smtp_server)