This is my sample code….i am creating the class object as NSDictionary.Here it shows the leak,Where i release that object it’s not right place to release this object?
How can i release this object.
TanX in advance.
NSDictionary *locationDictionary = [[CJSONDeserializer alloc]deserializeAsDictionary:webresponse error:nil];
NSArray *placemarkArray = [locationDictionary valueForKey:@"Placemark"];
NSDictionary *tempDictionary = [placemarkArray objectAtIndex:0];
NSDictionary *pointDictionary = [tempDictionary valueForKey:@"Point"];
NSArray *coordinateArray = [pointDictionary valueForKey:@"coordinates"];
NSNumber *numberLongitude = [coordinateArray objectAtIndex:0];
NSNumber *numberLatitude = [coordinateArray objectAtIndex:1];
The CJSONDeserializer class has convenient constructor. So use that.
The deserialize with that object.
So you need not to release that.