diff --git a/Classes/AQGridView.m b/Classes/AQGridView.m index 097caf8..ebeac7e 100755 --- a/Classes/AQGridView.m +++ b/Classes/AQGridView.m @@ -1432,7 +1432,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]; @@ -1492,6 +1492,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