Skip to content

Commit 5a9bf26

Browse files
tiennourowanj
authored andcommitted
Remove impossible weak references on 10.7.
1 parent 20f3885 commit 5a9bf26

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

Classes/Controllers/PBRefController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@class PBRefMenuItem;
1717

1818
@interface PBRefController : NSObject <PBRefContextDelegate> {
19-
IBOutlet __weak PBGitHistoryController *historyController;
19+
IBOutlet PBGitHistoryController *historyController;
2020
IBOutlet NSArrayController *commitController;
2121
IBOutlet PBCommitList *commitList;
2222

Classes/Controllers/PBRefController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,4 +458,8 @@ - (void)acceptDropInfoAlertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnC
458458
[PBGitDefaults suppressDialogWarningForDialog:kDialogAcceptDroppedRef];
459459
}
460460

461+
- (void)dealloc {
462+
historyController = nil;
463+
}
464+
461465
@end

Classes/Controllers/PBViewController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@interface PBViewController : NSViewController {
1414
__weak PBGitRepository *repository;
15-
__weak PBGitWindowController *superController;
15+
PBGitWindowController *superController;
1616

1717
NSString *status;
1818
BOOL isBusy;

Classes/Controllers/PBViewController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ - (id)initWithRepository:(PBGitRepository *)theRepository superController:(PBGit
2727
return self;
2828
}
2929

30+
- (void)dealloc {
31+
superController = nil;
32+
}
33+
3034
- (void)closeView
3135
{
3236
[self unbind:@"repository"];

0 commit comments

Comments
 (0)