So I am creating two different multidimensional vectors like this below
string **customdiceArray = new string*[crows];
for(unsigned int i = 0; i<crows;i++){
customdiceArray[i] = new string[ccolumns];
}
They are giving me memory leaks however. I do a delete call like the one below for both vectors. Where am i going wrong?
//Deallocate create objects
delete diceArray;
diceArray = 0;
//set<string>* words = new set<string>;
delete words;
words = 0;
//string **customdiceArray = new string*[crows];
delete customdiceArray;
customdiceArray = 0;