Skip to content

Commit

Permalink
Plugged some leaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Darryl H. Thomas committed May 26, 2011
1 parent 927191a commit 7ad0e92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Classes/AQGridView.m
Expand Up @@ -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];
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7ad0e92

Please sign in to comment.