Quote:
Originally Posted by eddietr
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.