Fix a memory leak.

This commit is contained in:
Tetsuo Kiso 2012-02-20 11:04:21 +09:00
parent c2ef7093ed
commit aefa6e1000

View File

@ -5,11 +5,11 @@
#define BOOST_TEST_MODULE MertData
#include <boost/test/unit_test.hpp>
#include <boost/scoped_ptr.hpp>
//very basic test of sharding
BOOST_AUTO_TEST_CASE(shard_basic) {
Scorer* scorer = ScorerFactory::getScorer("BLEU", "");
boost::scoped_ptr<Scorer> scorer(ScorerFactory::getScorer("BLEU", ""));
Data data(*scorer);
FeatureArray fa1, fa2, fa3, fa4;
ScoreArray sa1, sa2, sa3, sa4;