variable number of translation component scores

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@20 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
hieuhoang1972 2006-07-09 00:54:41 +00:00
parent 5edb3bb269
commit b9f8b5d437

View File

@ -36,6 +36,16 @@ public:
assert(iter != end());
return *iter->second;
}
~TransScoreComponentCollection()
{ // ??? memory leak but double free
/* TransScoreComponentCollection::iterator iter;
for (iter = begin() ; iter != end() ; ++iter)
{
delete iter->second;
}
*/
}
const TransScoreComponent &GetTransScoreComponent(const PhraseDictionary *phraseDictionary) const
{