fix bug 2957, 'Double-free in account preferences'
authorPaul <paul@claws-mail.org>
Mon, 8 Jul 2013 16:05:09 +0000 (17:05 +0100)
committerPaul <paul@claws-mail.org>
Mon, 8 Jul 2013 16:05:09 +0000 (17:05 +0100)
src/prefs_account.c

index 32eeeed..7990a31 100644 (file)
@@ -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)