diff --git a/wcclparser/main.cpp b/wcclparser/main.cpp index 359ea6a1bfbd2eef67b9464921a4b5e10c7b310b..f1ddd3e7a31e5c73427c19cff5ef67f935387e36 100644 --- a/wcclparser/main.cpp +++ b/wcclparser/main.cpp @@ -98,6 +98,7 @@ bool process_line(const std::string& line, Parser& parser) boost::shared_ptr<const Wccl::Value> retVal; boost::shared_ptr<ANTLRParserResultBase> retOp; boost::shared_ptr<Corpus2::Sentence> sentence; + sentence.reset(new Corpus2::Sentence); Wccl::SentenceContext sc(sentence); try {