summaryrefslogtreecommitdiff
path: root/lingucomponent/source/hyphenator
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-05-18 22:52:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-05-20 09:47:55 +0100
commitcde15afdde4954ae9bc3ad8379c3129708cdaf1f (patch)
tree4fa9468f44763ca4dbd14a8d588e5695ade502ff /lingucomponent/source/hyphenator
parentab826b141724fbf6aa50ad7eacb7335807b20bf9 (diff)
free hyphenators in dtor
Diffstat (limited to 'lingucomponent/source/hyphenator')
-rw-r--r--lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx4
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;