Memory leak problem and i need help #1

前端 未结 5 760
北海茫月
北海茫月 2021-01-23 08:34

I am very new at this and seems to have a leak in this piece of code that i cannot fix:

The Instruments shows on this line with a 100%:

NSMutableA

5条回答
  •  不要未来只要你来
    2021-01-23 09:00

    Instruments is telling you were the leaked object was allocated, not where it was necessarily leaked.

    While you may not be autoreleasing the array in all cases on return from that method, you might also be retaining it somewhere else and not balancing that retain with a release.

提交回复
热议问题