Mike Abdullah  committed ae85e9f

Were leaking selected view controller

  • Participants
  • Parent commits c90e248
  • Branches default

Comments (0)

Files changed (2)

File BWTabViewController.h

 #pragma mark Managing the Selected Tab
 //  Both are KVO-compliant
-@property(nonatomic, assign) NSViewController *selectedViewController;
+@property(nonatomic, retain) NSViewController *selectedViewController;
 @property(nonatomic) NSUInteger selectedIndex;
 //  For subclasses to know when selection is changing without needing KVO. Default implementation does nothing.

File BWTabViewController.m

     [self setTabView:nil];  // releases view and tears down binding/delegation
     [_identifier release];
+    [_selectedViewController release];
     [_tabViewItems release];
     [_viewControllers release];