Do not release old ref in refCurrentItem
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 6 Sep 2018 15:15:33 +0000 (17:15 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 6 Sep 2018 15:15:33 +0000 (17:15 +0200)
commit8d140cb78c797c83ea882f34d11514cd8965386d
tree7b6d05176e32a471a81ccd7a50f573a7101a03c1
parent7ac02373ee79b94f27d56573252947f1291a65a5
Do not release old ref in refCurrentItem

* src/mail.cpp (Mail::refCurrentItem): Do not release
existing ref.

--
This was stupid. Releasing the ref there could trigger
the unload and so lead to crashes.

Happliy the case that refCurrentItem was called multiple
times did only exist for close and the anyway instable
MAPI SubmitMessage codepath.
src/mail.cpp