Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-09-2010, 05:43 PM   #3 (permalink)
borg359
Registered Member
 
Join Date: Jan 2009
Posts: 26
Default Thanks, but why is this a leak?

Quote:
Originally Posted by BrianSlick View Post
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?
borg359 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,866
Threads: 89,225
Posts: 380,691
Top Poster: BrianSlick (7,129)
Welcome to our newest member, sethaver
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:03 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.