Ignore the colors, in that [DashBoard viewDidLoad] is the source of the leak, something in how it initializes the URLConnection (maybe you didnβt release it when the connection was finished?)
Now, to answer the other questions you had:
- Why should we eliminate all leaks? - even one leak can clog the iPhone?
Yes. Part of the reason is not only that you simply run out of memory, but since there is so much memory left for the whole phone, the watchdog application constantly monitors your application and will close it earlier if it sees the memory usage only ever grows .. .
- Why does the iPhone avoid memory leaks? / Why is garbage collection not automatically performed after the application terminates?
All of your application memory is freed when the application exits.
- If I try to delete objects that should be freed according to the tools, My application ends abnormally. If I am not dealloc, my application runs fine, how?
Here I canβt help, you really need to know more about the save / release memory cycle ... if you release an object that has a value of 0, the application will work because the object is gone.
- Why is it assumed that you wait in up to 10 seconds or more, if there is a leak, the leak will be detected using tools?
Because the tools work with selective memory every so often, it may take a little time for the tools to bypass reading memory after the action.
Kendall helmstetter gelner
source share