mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
leak
This commit is contained in:
parent
8fe07d1c9c
commit
fcadf4511a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user