The performance tool is showing leak at this position( red color).
Code:
NSString *street = [[NSString alloc] initWithString:[dictContact objectForKey:@"add"]];
NSString *city = [[NSString alloc] initWithString:[dictContact objectForKey:@"city"]];
NSString *state = [[NSString alloc] initWithString:[dictContact objectForKey:@"state"]];
NSString *pin = [[NSString alloc] initWithString:[dictContact objectForKey:@"pin"]];
[COLOR="Red"] NSMutableString *address = [[NSMutableString alloc] initWithFormat:@"%@+%@+%@+%@",street,city,state,pin];[/COLOR]
[address replaceOccurrencesOfString:@" " withString:@"+" options:NSCaseInsensitiveSearch range:NSMakeRange(0, [address length])];
[street release];
[city release];
[state release];
[pin release];
//NSLog(@"Address %@",address);
MapViewController *mvController = [[MapViewController alloc]init];
[mvController setAddress:address];
[self.navigationController pushViewController:mvController animated:YES];
[mvController release];
[address release];