I'm not very knowledgable about when memory leaks occure and how to prevent them.
I have a for(;; ) loop and inside there is a variable, that gets written over each itteration,
At the bottom of the for loop I callCode:char** vecDat = new char *[vehichle.size() + 1];Should I be doing anything else?Code:delete [] vecData;
I was taught to delete[] when new [] had been used, otherwise use delete. But there's new *[] here so I'm not sure.