Skip to content

Commit

Permalink
Merge pull request github#148 from github/fix-tuipopover-cycle
Browse files Browse the repository at this point in the history
Fix reference cycle in TUIPopover
  • Loading branch information
boidanny committed Dec 11, 2012
2 parents 33d4ced + 03929a8 commit e594eff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/UIKit/TUIPopover.m
Original file line number Diff line number Diff line change
Expand Up @@ -581,4 +581,8 @@ - (void)drawRect:(NSRect)dirtyRect {
[NSGraphicsContext restoreGraphicsState];
}

- (void)dealloc {
_nsView.rootView = nil;
}

@end

0 comments on commit e594eff

Please sign in to comment.