diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-19 17:55:30 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-19 17:55:30 +0300 |
commit | b700f99afb6b3e0444c592b01b798057b99327bc (patch) | |
tree | 6d206cd3814334a88efd7fbeffa2839c2e412814 /moses/Bitmaps.cpp | |
parent | d28b00a1c6da6347d0c9f8a0ee4b01dff279e495 (diff) |
leak
Diffstat (limited to 'moses/Bitmaps.cpp')
-rw-r--r-- | moses/Bitmaps.cpp | 6 |
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) |