Understanding the Instrument for memory leak checking - iPhone

前端 未结 5 1533
无人共我
无人共我 2021-02-03 14:57

\"alt

Above given images is of my application leaks.

Here I want to understand that, in Extended Det

5条回答
  •  感动是毒
    2021-02-03 15:30

    First of all, the things in the stack are colored by which library they come from, so it doesn't contain that much information.

    Second, instead of worrying about how much leakage the iPhone can take, I'd focus on not having it leak.

    To find leaks, there are a couple options:

    • Use the CLANG static analyzer when building your project
    • Look for leaks manually. You must always follow The Rules of memory management: if you alloc, retain, or copy an object (including using @property (retain) or (copy)), you must release or autorelease it.

提交回复
热议问题