]> git.lyx.org Git - features.git/commit
Fix crashes reported by Bennet Helm and Kornel Benko
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 15 Nov 2006 21:40:46 +0000 (21:40 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 15 Nov 2006 21:40:46 +0000 (21:40 +0000)
commit2981181ec3d830242a66d56515f45c87548cd195
tree915c9165bed69c7740b7a66dfe9ec514ce19a08b
parent51a312535697f8844b4fa878e5ef1146b756ae77
Fix crashes reported by Bennet Helm and Kornel Benko
* src/support/unicode.[Ch]
(IconvProcessor): Rework the implementation to fix two bugs:
- iconv_close was called even if the conversion descriptor was
  invalid
- The compiler generated copy constructor did simply copy the pimpl_
  pointer. Therefore pimpl_ was deleted twice for all IconvProcessor
  instances created by eightbit_to_ucs4() and ucs4_to_eightbit().
  This is solved by using a scoped_ptr for pimpl_.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15937 a592a061-630c-0410-9148-cb99ea01b6c8
src/support/unicode.C
src/support/unicode.h