Skip to content
Browse files

Retained instance variables were being leaked when classes were being…

… deallocated.
  • Loading branch information...
1 parent b2e842d commit 7752179ad73b11c8ebf7c585a7faa183870791bc @aidansteele aidansteele committed Sep 7, 2011
Showing with 13 additions and 0 deletions.
  1. +5 −0 REVClusterMap/REVClusterMap/REVClusterMapView.m
  2. +8 −0 REVClusterMap/REVClusterMap/REVClusterPin.m
View
5 REVClusterMap/REVClusterMap/REVClusterMapView.m
@@ -41,6 +41,11 @@ - (id) initWithFrame:(CGRect)frame
}
+- (void)dealloc
+{
+ [annotationsCopy release];
+ [super dealloc];
+}
-(MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id <MKOverlay>)overlay
{
View
8 REVClusterMap/REVClusterMap/REVClusterPin.m
@@ -21,4 +21,12 @@ - (NSUInteger) nodeCount
return [nodes count];
return 0;
}
+
+- (void)dealloc
+{
+ [title release];
+ [subtitle release];
+ [nodes release];
+ [super dealloc];
+}
@end

0 comments on commit 7752179

Please sign in to comment.
Something went wrong with that request. Please try again.