Quote:
Originally Posted by Domele
Post your code that you are using to insert objects into internal expression.
|
For anyone experiencing similar problem, go back and comment out a bunch of calls to release (or all of them) and of course the problem will clear, and you will leak memory.
Now put them back one at at time, and it should help narrow down.
In my case there was two that would cause it.
I was releasing one of the strings I had put into the array.
I didn't need to because I didn't ever really own the string, it was a mutable copy, and I had put a pointer to it into a mutable array, then put a copy into an array, then released the second array, and released the string. OOPS, that's 2 releases for that string, so the original array lost one of its retain counts!
So it certainly is possible for an array to lose one of its members, if the member is also owned by anyone else who calls release too many times.