Is there a way to “find mystery retains” …?

后端 未结 6 1097
离开以前
离开以前 2020-12-22 19:22

Recently I was repairing someone\'s code. There was a big class that would not dealloc. You\'d have to hit it with 5 or 6 releases to get it to dealloc.

I carefully

6条回答
  •  再見小時候
    2020-12-22 19:39

    Instruments and its memory management stuff is your friend. Leaks and Zombies are two of the most valuable tools available. Use them.

    Product -> Profile (or Cmd-I)

提交回复
热议问题