Code: geoCoder =[[MKReverseGeocoder alloc] initWithCoordinate:UserLocation];
where to release geoCoder though i release in dealloc method it give me memory leak
Code: geoCoder =[[MKReverseGeocoder alloc] initWithCoordinate:UserLocation];
where to release geoCoder though i release in dealloc method it give me memory leak
I have this code. I made sure it was actually allocated before I tried to release it, I also set it to nil.
- (void)dealloc
{
if(address!=nil) {
address = nil;
[address release];
}
// releae the map delegate otherwise it will try and call our classes with no data.
map.delegate = nil;
[super dealloc];
}