Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-10-19 17:55:30 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-19 17:55:30 +0300
commitb700f99afb6b3e0444c592b01b798057b99327bc (patch)
tree6d206cd3814334a88efd7fbeffa2839c2e412814 /moses/Bitmaps.cpp
parentd28b00a1c6da6347d0c9f8a0ee4b01dff279e495 (diff)
leak
Diffstat (limited to 'moses/Bitmaps.cpp')
-rw-r--r--moses/Bitmaps.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/moses/Bitmaps.cpp b/moses/Bitmaps.cpp
index a052f1f7e..e130898f4 100644
--- a/moses/Bitmaps.cpp
+++ b/moses/Bitmaps.cpp
@@ -1,3 +1,4 @@
+#include <boost/foreach.hpp>
#include "Bitmaps.h"
#include "Util.h"
@@ -12,7 +13,10 @@ Bitmaps::Bitmaps(size_t inputSize)
Bitmaps::~Bitmaps()
{
- //RemoveAllInColl(m_coll);
+ BOOST_FOREACH (const Coll::value_type& myPair, m_coll) {
+ const WordsBitmap *bm = myPair.first;
+ delete bm;
+ }
}
const WordsBitmap &Bitmaps::GetNextBitmap(const WordsBitmap &bm, const WordsRange &range)