I am in the section of Chapter 4 on memory leaks. We’re told to release the object after it’s added to the array:
I guess I’m confused - since arrays store pointers to objects instead of copies of the objects, don’t we need to retain the objects themselves as long as the array? Else, wouldn’t the array point to blocks of freed memory? Will this have long term effects?