Fix mlang release after mlang error
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 25 Sep 2018 09:27:12 +0000 (11:27 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 25 Sep 2018 09:27:12 +0000 (11:27 +0200)
commit38f9d070bf8e32cff85c85657e9c0c86fbb66e85
treec94c9980336281b80413c95b238ed71fed9d3090
parent38584f4c288307fee7b97875fbc9ce1ec72708b8
Fix mlang release after mlang error

* src/mlang-charset.cpp (ansi_charset_to_utf8): Fix release.

--
In case of errors we may not release the mlang charset anymore
because we are now using it cached. This caused crashes and
probably hangs.

It is a regression from:
59e8a7ee3bcd16275091c9535626e49fc2a6c4af

GnuPG-Bug-Id: T4141
src/mlang-charset.cpp