free hyphenators in dtor

This commit is contained in:
Caolán McNamara 2011-05-18 22:52:26 +01:00
parent ab826b1417
commit cde15afdde

View file

@ -103,7 +103,11 @@ Hyphenator::~Hyphenator()
if (numdict && aDicts) if (numdict && aDicts)
{ {
for (int i=0; i < numdict; ++i) for (int i=0; i < numdict; ++i)
{
delete aDicts[i].apCC; delete aDicts[i].apCC;
if (aDicts[i].aPtr)
hnj_hyphen_free(aDicts[i].aPtr);
}
} }
delete[] aDicts; delete[] aDicts;