Permalink
Browse files

Plugged some leaks.

  • Loading branch information...
1 parent 927191a commit 7ad0e92583442223cd1949aa949879c90a1c992d Darryl H. Thomas committed May 26, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 Classes/AQGridView.m
View
@@ -1431,7 +1431,7 @@ - (void) touchesEnded: (NSSet *) touches withEvent: (UIEvent *) event
selector: @selector(_gridViewDeferredTouchesBegan:)
object: nil];
- UIView * hitView = [_touchedContentView retain];
+ UIView * hitView = _touchedContentView;
_touchedContentView = nil;
[super touchesEnded: touches withEvent: event];
@@ -1491,6 +1491,9 @@ - (void) touchesCancelled: (NSSet *) touches withEvent: (UIEvent *) event
_pendingSelectionIndex = NSNotFound;
[self highlightItemAtIndex: NSNotFound animated: NO scrollPosition: AQGridViewScrollPositionNone];
[super touchesCancelled: touches withEvent: event];
+
+ [_touchedContentView release];
+ _touchedContentView = nil;
}
- (void)doAddVisibleCell: (UIView *)cell

0 comments on commit 7ad0e92

Please sign in to comment.