From 4c0a9cfe95004f1fc934b69aa65cf2bd8a3f46ac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 14 Apr 2015 16:57:07 +0000 Subject: fix for two mem leaks in hunspell git-svn-id: http://svn.miranda-ng.org/main/trunk@12820 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SpellChecker/src/hunspell/affixmgr.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/SpellChecker/src/hunspell/affixmgr.cxx') diff --git a/plugins/SpellChecker/src/hunspell/affixmgr.cxx b/plugins/SpellChecker/src/hunspell/affixmgr.cxx index bd998f6369..6f2ae6ccdd 100644 --- a/plugins/SpellChecker/src/hunspell/affixmgr.cxx +++ b/plugins/SpellChecker/src/hunspell/affixmgr.cxx @@ -312,7 +312,10 @@ int AffixMgr::parse_file(const char * affpath, const char * key) utf8 = 1; #ifndef OPENOFFICEORG #ifndef MOZILLA_CLIENT - if (initialize_utf_tbl()) return 1; + if (initialize_utf_tbl()) { + finishFileMgr(afflst); + return 1; + } #endif #endif } -- cgit v1.2.3