diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-11-09 11:07:24 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-11-09 11:07:24 +0000 |
commit | 0320d8e62744b2c201320393e693b5dae6e881d8 (patch) | |
tree | eea69fe4a368047d19d951f7226d6503b78247fd /main.c | |
parent | 27f760bfb0b57b3fcab537ddab2e20d1f6048033 (diff) |
Avoid duplicate mx_close_mailbox() when OP_QUIT is called.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -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 |