Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed some leaks.

  • Loading branch information...
commit 6ed424cc12a091e053c95f69f72fa10dfaa09f3d 1 parent fa6ca7c
@kishikawakatsumi authored
View
1  Classes/MapDirectionsViewController.m
@@ -22,6 +22,7 @@ - (void)dealloc {
[routeOverlayView release];
[startPoint release];
[endPoint release];
+ [wayPoints release];
[super dealloc];
}
View
8 Classes/RootViewController.m
@@ -44,7 +44,7 @@ - (void)done:(id)sender {
}
- (void)addRow:(id)sender {
- [wayPointFields addObject:[[[UITextField alloc] initWithFrame:CGRectMake(66.0, 0.0, 236.0, 44.0)] autorelease]];
+ [wayPointFields addObject:[[[UITextField alloc] initWithFrame:CGRectMake(66.0f, 11.0f, 236.0f, 22.0f)] autorelease]];
[self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:[wayPointFields count] inSection:0]] withRowAnimation:UITableViewRowAnimationTop];
removeButton.enabled = YES;
@@ -125,7 +125,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
textLabel.textAlignment = UITextAlignmentRight;
textLabel.textColor = [UIColor lightGrayColor];
- UITextField *inputField = [[UITextField alloc] initWithFrame:CGRectMake(66.0, 11.0, 236.0, 22.0)];
+ UITextField *inputField = [[UITextField alloc] initWithFrame:CGRectMake(66.0f, 11.0f, 236.0f, 22.0f)];
inputField.delegate = self;
[cell addSubview:inputField];
[inputField release];
@@ -160,7 +160,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
textLabel.textAlignment = UITextAlignmentRight;
textLabel.textColor = [UIColor lightGrayColor];
- UITextField *inputField = [[UITextField alloc] initWithFrame:CGRectMake(66.0, 11.0, 236.0, 22.0)];
+ UITextField *inputField = [[UITextField alloc] initWithFrame:CGRectMake(66.0f, 11.0f, 236.0f, 22.0f)];
inputField.delegate = self;
[cell addSubview:inputField];
[inputField release];
@@ -230,7 +230,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
cell.accessoryType = UITableViewCellAccessoryNone;
cell.textLabel.text = NSLocalizedString(@"Search", nil);
cell.textLabel.textAlignment = UITextAlignmentCenter;
- cell.textLabel.textColor = [UIColor colorWithRed:0.20 green:0.30 blue:0.49 alpha:1.0];
+ cell.textLabel.textColor = [UIColor colorWithRed:0.20f green:0.30f blue:0.49f alpha:1.0f];
}
return cell;
View
2  Classes/UICRouteOverlayMapView.h
@@ -15,7 +15,7 @@
UIColor *lineColor;
}
--(id) initWithMapView:(MKMapView *)mapView;
+- (id)initWithMapView:(MKMapView *)mapView;
@property (nonatomic, retain) MKMapView *inMapView;
@property (nonatomic, retain) NSArray *routes;
Please sign in to comment.
Something went wrong with that request. Please try again.