How to properly delete those pointers? Languages

How to properly delete those pointers?

This is my allocation:And this is my deletion :Is the code above OK? I probably should just use smart pointers, but I don't know how the code will look like with them? So if you throw in a smart-pointer code it would be greatly appreciated. Those pointers are used locally...
Read More