]> granicus.if.org Git - neomutt/commit
Fix memory leak when closing mailbox and using the sidebar.
authorKevin McCarthy <kevin@8t8.us>
Tue, 23 May 2017 22:53:30 +0000 (15:53 -0700)
committerRichard Russon <rich@flatcap.org>
Wed, 24 May 2017 01:34:18 +0000 (02:34 +0100)
commitb3e7777f69b3cfd9cbdcbf84c447bf111d977262
tree860e4acd4cd7cda4ecffd0e0c5a815079334769d
parenta422f4b48dac87da0f527244dc8309a970bedf0c
Fix memory leak when closing mailbox and using the sidebar.

The code updating the sidebar counts decremented the msgcount, but did
not set it back to the original value.  Which means fastclose was not
freeing all the headers.

Update the sidebar only when something is deleted, since I don't
believe it's required otherwise and the code is a bit cleaner that
way.
mx.c