mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Ensure we remove ourself from all observing
The file browser was still observing FSItemDidReloadNotification in its dealloc. Prior to ARC we used ‘self.outlineView = nil’ which removed us as observer, but after ARC we no longer execute that line.
This commit is contained in:
@@ -125,9 +125,9 @@ static NSSet* VisibleItems (NSOutlineView* outlineView, FSItem* root, NSMutableS
|
||||
- (void)dealloc
|
||||
{
|
||||
[self applicationWillTerminate:nil];
|
||||
[outlineView setDataSource:nil];
|
||||
[outlineView setDelegate:nil];
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self name:NSApplicationWillTerminateNotification object:NSApp];
|
||||
outlineView.dataSource = nil;
|
||||
outlineView.delegate = nil;
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
}
|
||||
|
||||
- (void)applicationWillTerminate:(NSNotification*)aNotification
|
||||
|
||||
Reference in New Issue
Block a user