Skip to content

Commit

Permalink
Fixed memory management
Browse files Browse the repository at this point in the history
  • Loading branch information
gimenete committed Sep 15, 2011
1 parent 52c3c75 commit e300cd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion IOSBoilerplate/DirectionsExample.m
Expand Up @@ -35,7 +35,7 @@ - (MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnn
} else {
pin.pinColor = MKPinAnnotationColorRed;
}
return pin;
return [pin autorelease];
}
return nil;
}
Expand Down
1 change: 1 addition & 0 deletions IOSBoilerplate/SwipeableTableViewExample.m
Expand Up @@ -60,6 +60,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
NSString* text = [NSString stringWithFormat:@"Cell #%d", indexPath.row];
NSDictionary* info = [[NSDictionary alloc] initWithObjectsAndKeys:text, @"text", nil];
[cell updateCellInfo:info];
[info release];

return cell;
}
Expand Down

0 comments on commit e300cd7

Please sign in to comment.