Commit abe25ea2 authored by Radosław Warzocha's avatar Radosław Warzocha

Bugfix - memory leak in Morfeusz2Analyser fixed

parent 31281088
......@@ -101,6 +101,7 @@ bool Morfeusz2Analyser::process_functional(const Toki::Token &t,
while(res_iter->hasNext())
pmorf.push_back(details::Morfeusz2Edge(res_iter->next(), morfeusz_instance));
delete res_iter;
if(pmorf.size() == 1 && pmorf[0].lemma.length() > 0) { // only one analysis
Corpus2::Token *tok = make_token(t, pmorf[0]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment