Permalink
Browse files

Merge pull request #3 from aidansteele/master

Retained instance variables were being leaked when classes were being deallocated.
  • Loading branch information...
2 parents b2e842d + 7752179 commit 68c101adbf0690e83f454b0753501b6f471d3263 @RVLVR 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
@@ -41,6 +41,11 @@ - (id) initWithFrame:(CGRect)frame
}
+- (void)dealloc
+{
+ [annotationsCopy release];
+ [super dealloc];
+}
-(MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id <MKOverlay>)overlay
{
@@ -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 68c101a

Please sign in to comment.