Skip to content

Commit e2b5713

Browse files
committed
Close our subview controllers when the window closes
Fixes a leaking KVO introduced in 78734e3
1 parent 8133974 commit e2b5713

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Classes/Controllers/PBGitWindowController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ - (void)windowWillClose:(NSNotification *)notification
6363
if (sidebarController)
6464
[sidebarController closeView];
6565

66+
[self.historyViewController closeView];
67+
[self.commitViewController closeView];
68+
6669
if (contentController)
6770
[contentController removeObserver:self forKeyPath:@"status"];
6871
}

0 commit comments

Comments
 (0)