tags:

views:

36

answers:

1
- (void)dealloc 
{
    [refreshProgressInd release];
    [DetailsObject release];
      List=nil;
    [List release];
    [mapView release];
     addAnnotation=nil;
    [addAnnotation release];
    [reverseGeocoder release];
    [super dealloc];
}
+1  A: 

Don't set a variable to nil before releasing it, otherwise the release message gets discarded when it should have been sent to an object.

[someObject release];
someObject = nil;

Keep in mind that dealloc is the last thing to be invoked before your object is actually deallocated, so setting variables to nil is often unnecessary.

dreamlax