summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-11-09 11:07:24 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-11-09 11:07:24 +0000
commit0320d8e62744b2c201320393e693b5dae6e881d8 (patch)
treeeea69fe4a368047d19d951f7226d6503b78247fd /main.c
parent27f760bfb0b57b3fcab537ddab2e20d1f6048033 (diff)
Avoid duplicate mx_close_mailbox() when OP_QUIT is called.
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/main.c b/main.c
index 97ed84dc..893e4d01 100644
--- a/main.c
+++ b/main.c
@@ -672,17 +672,9 @@ int main (int argc, char **argv)
if ((Context = mx_open_mailbox (folder, ((flags & M_RO) || option (OPTREADONLY)) ? M_READONLY : 0, NULL)) != NULL)
{
- int close = mutt_index_menu ();
-
+ mutt_index_menu ();
if (Context)
- {
- if (close == OP_QUIT)
- mx_close_mailbox (Context);
- else
- mx_fastclose_mailbox (Context);
- }
-
- safe_free ((void **)&Context);
+ safe_free ((void **)&Context);
mutt_endwin (NULL);
}
else