Skip to content
Snippets Groups Projects
Commit cba1eb47 authored by ale's avatar ale
Browse files

fix memory leak by correctly deleting the marsyas system

parent 9c54ae34
Branches
No related tags found
No related merge requests found
......@@ -136,8 +136,10 @@ string vector_from_file(const string& filename)
// Should only need to tick once
tnet->tick();
return vector_to_string(
tnet->getctrl("mrs_realvec/processedData")->to<mrs_realvec>());
realvec result = tnet->getctrl("mrs_realvec/processedData")->to<mrs_realvec>();
delete tnet;
return vector_to_string(result);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment