NSMutableArray destruction

前端 未结 5 2065
广开言路
广开言路 2021-02-02 16:48

I have an array NSMutableArray with happy objects. These objects viciously turn on (leak) me whenever I try to clear the array of all the objects and repopulate it.

5条回答
  •  春和景丽
    2021-02-02 17:01

    If the leak only occurs when you try to reset the list, you have someone/something else using those other objects that you just tried to release.

提交回复
热议问题