diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-19 12:58:29 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-19 13:48:27 +0300 |
commit | b9f216cc96fda35fad9983037f02100e611c55fc (patch) | |
tree | 473c6cb6cca70f385bbb0edc9eeb380c988508bb /moses/BitmapContainer.cpp | |
parent | f7839c42d5cf2de17e86ec16df5e2f541ba53c75 (diff) |
delete use of mempool in Hypos. Never used. Getting in the way of next refactoring
Diffstat (limited to 'moses/BitmapContainer.cpp')
-rw-r--r-- | moses/BitmapContainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/BitmapContainer.cpp b/moses/BitmapContainer.cpp index bb8dd7f8a..c2494b398 100644 --- a/moses/BitmapContainer.cpp +++ b/moses/BitmapContainer.cpp @@ -211,7 +211,7 @@ Hypothesis *BackwardsEdge::CreateHypothesis(const Hypothesis &hypothesis, const IFVERBOSE(2) { hypothesis.GetManager().GetSentenceStats().StartTimeBuildHyp(); } - Hypothesis *newHypo = hypothesis.CreateNext(transOpt); // TODO FIXME This is absolutely broken - don't pass null here + Hypothesis *newHypo = new Hypothesis(hypothesis, transOpt); IFVERBOSE(2) { hypothesis.GetManager().GetSentenceStats().StopTimeBuildHyp(); } @@ -297,7 +297,7 @@ BitmapContainer::~BitmapContainer() HypothesisQueueItem *item = m_queue.top(); m_queue.pop(); - FREEHYPO( item->GetHypothesis() ); + delete item->GetHypothesis(); delete item; } |