Quote:
Originally Posted by BrianSlick
This is a leak:
Code:
[tmpMarkers addObject:[item copy]];
|
Thanks for point this out Brian. Without using a copy though, how would I prevent the dictionary item from disappearing from the NSMutableArray when I later release the item? The way I have it setup now, I reuse the dictionary item to fill the mutable array inside a for loop, so without the copy I would end up placing the same object in the array n number of times. Is there a proper way doing this without issuing a copy?