This commit is contained in:
Hieu Hoang 2014-01-21 17:11:16 +00:00
parent 8fe07d1c9c
commit fcadf4511a

View File

@ -110,6 +110,14 @@ void PhraseDictionaryOnDisk::GetTargetPhraseCollectionBatch(const InputPathList
InputPath &inputPath = **iter;
GetTargetPhraseCollectionBatch(inputPath);
}
// delete nodes that's been saved
for (iter = inputPathQueue.begin(); iter != inputPathQueue.end(); ++iter) {
InputPath &inputPath = **iter;
const OnDiskPt::PhraseNode *ptNode = static_cast<const OnDiskPt::PhraseNode*>(inputPath.GetPtNode(*this));
delete ptNode;
}
}
void PhraseDictionaryOnDisk::GetTargetPhraseCollectionBatch(InputPath &inputPath) const