开发者

Count of a mutable array shows memory leak

开发者 https://www.devze.com 2023-03-20 13:39 出处:网络
Why [nsmutableArrayObj count] show 开发者_开发百科me 75% memory Leak in instrument. I cant understand this. If you count an array, it has to count each object using NSEnumerator or a for loop. If your

Why [nsmutableArrayObj count] show 开发者_开发百科me 75% memory Leak in instrument. I cant understand this.


If you count an array, it has to count each object using NSEnumerator or a for loop. If your array is not released, it will be accessed several times by this loop, causing memory to leak.

You're most definitely not releasing something somewhere, but since you've posted no code I can't give any more details.

0

精彩评论

暂无评论...
验证码 换一张
取 消