SyntaxFix
Write A Post
Hire A Developer
Questions
saveLeaves(vec,msh); I'm assuming takes the msh pointer and puts it inside of vec. Since msh is just a pointer to the memory, if you delete it, it will also get deleted inside of the vector.
saveLeaves(vec,msh);
msh
vec