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.
精彩评论