diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-05-18 22:52:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-05-20 09:47:55 +0100 |
commit | cde15afdde4954ae9bc3ad8379c3129708cdaf1f (patch) | |
tree | 4fa9468f44763ca4dbd14a8d588e5695ade502ff /lingucomponent | |
parent | ab826b141724fbf6aa50ad7eacb7335807b20bf9 (diff) |
free hyphenators in dtor
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx index 768661d28a1c..b4207e65e33d 100644 --- a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx +++ b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx @@ -103,7 +103,11 @@ Hyphenator::~Hyphenator() if (numdict && aDicts) { for (int i=0; i < numdict; ++i) + { delete aDicts[i].apCC; + if (aDicts[i].aPtr) + hnj_hyphen_free(aDicts[i].aPtr); + } } delete[] aDicts; |