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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Draw This
($0.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-27-2009, 06:22 PM   #29 (permalink)
svveet
Registered Member
 
Join Date: Jun 2009
Location: Australia
Posts: 180
svveet is on a distinguished road
Default

Quote:
Originally Posted by eddietr View Post
So I don't think the problem is that you are over-releasing the dictionary. The problem is you are over-releasing items in the dictionary. By not releasing the dictionary itself, you are just masking the problem.

For example look at this:

Code:
NSMutableArray *triparray = [[self trackDict] objectForKey:kTripKey];
		[self setCurrentTrackTripArray:triparray];
		[triparray release]; // You shouldn't be doing this.
You don't want to be releasing triparray there. There may be other cases of this as well, so if you clean those up then you should be able to release the dictionary after setTrackDict, which is the right thing to do.

Hope that helps. If not, please post the current version of the code including all the new changes you've incorporated.
Yes you are absolutely right! you have fixed my problem. thanks alot for all.
triparray should be autoreleased, isnt it.
svveet is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,014
Threads: 93,862
Posts: 401,917
Top Poster: BrianSlick (7,962)
Welcome to our newest member, Shimi574
Powered by vBadvanced CMPS v3.1.0

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