开发者

Count of a mutable array shows memory leak

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜