From a7d4f03e4fcdf630baaa35b6e6dc3b05c16ef9ef Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Sun, 12 Sep 2010 12:05:54 +0100 Subject: Bug 629413 - use-after-free in bad cert dialog --- mail/mail-session.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mail/mail-session.c b/mail/mail-session.c index f120d2f4d5..4e4850b3d2 100644 --- a/mail/mail-session.c +++ b/mail/mail-session.c @@ -466,9 +466,7 @@ alert_user(CamelSession *session, CamelSessionAlertType type, const gchar *promp e_flag_wait (m->done); result = m->result; mail_msg_unref (m); - } - - if (m->ismain) + } else if (m->ismain) mail_msg_unref (m); return result; -- cgit v1.2.3