diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-11 14:11:10 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-11 15:02:26 +0400 |
commit | 087756b8c329149751af3483223f52f13fa6d7a5 (patch) | |
tree | abf65b85b395b3de4a03348bca98ce42f6b9b023 /mert/BleuScorer.h | |
parent | c5c128f26372ee7383cb6a30a60b3d9e21bd1e6e (diff) |
Fix memory leaks in extractor.
Diffstat (limited to 'mert/BleuScorer.h')
-rw-r--r-- | mert/BleuScorer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mert/BleuScorer.h b/mert/BleuScorer.h index 6481ce709..51c21e331 100644 --- a/mert/BleuScorer.h +++ b/mert/BleuScorer.h @@ -14,6 +14,7 @@ #include "Types.h" #include "ScoreData.h" #include "Scorer.h" +#include "ScopedVector.h" using namespace std; @@ -88,7 +89,7 @@ private: typedef map<vector<int>,int,CompareNgrams> counts_t; typedef map<vector<int>,int,CompareNgrams>::iterator counts_it; - typedef vector<counts_t*> refcounts_t; + typedef ScopedVector<counts_t> refcounts_t; size_t countNgrams(const string& line, counts_t& counts, unsigned int n); |