1. mikeabdullah
  2. BWToolkit

Commits

Mike Abdullah  committed ae85e9f

Were leaking selected view controller

  • Participants
  • Parent commits c90e248
  • Branches default

Comments (0)

Files changed (2)

File BWTabViewController.h

View file
  • Ignore whitespace
 #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

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