Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

the nsView property should be unsafe_unretained

  • Loading branch information...
commit d98197d60567e73d8846d4e94a9dc3946bd68e8f 1 parent def0e1a
@joshaber joshaber authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/UIKit/TUINSView.m
  2. +1 −1  lib/UIKit/TUIView.h
View
2  lib/UIKit/TUINSView.m
@@ -44,8 +44,8 @@ - (void)dealloc
[[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidResignKeyNotification object:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidBecomeKeyNotification object:nil];
+ rootView.nsView = nil;
[rootView removeFromSuperview];
- rootView.nsView = nil;
rootView = nil;
_hoverView = nil;
View
2  lib/UIKit/TUIView.h
@@ -94,7 +94,7 @@ extern CGRect(^TUIViewCenteredLayout)(TUIView*);
NSTimeInterval toolTipDelay;
@public
- TUINSView *_nsView; // keep this updated, fast way of getting .nsView
+ __unsafe_unretained TUINSView *_nsView; // keep this updated, fast way of getting .nsView
struct {
NSInteger lastWidth;
Please sign in to comment.
Something went wrong with that request. Please try again.