Question about allocating and releasing an object in a function?

You have to release every object that you own (you retained, copied, or init/alloced). The way you release your objects at the end is correct but here unosRazlike = NSNumber numberWithInt: 0 you assigned unosRazlike another value, without releasing the previous one, and here is a leak. Also, with this kind of method, you should retain your object.

Try moving the calls before you dismiss the ViewController. It doesn't make much sense to release that memory when your ViewController is already being released.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions