Skip to content

Commit

Permalink
Remove impossible weak references on 10.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
tiennou authored and rowanj committed Jul 4, 2013
1 parent 20f3885 commit 5a9bf26
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Controllers/PBRefController.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@class PBRefMenuItem;

@interface PBRefController : NSObject <PBRefContextDelegate> {
IBOutlet __weak PBGitHistoryController *historyController;
IBOutlet PBGitHistoryController *historyController;
IBOutlet NSArrayController *commitController;
IBOutlet PBCommitList *commitList;

Expand Down
4 changes: 4 additions & 0 deletions Classes/Controllers/PBRefController.m
Original file line number Diff line number Diff line change
Expand Up @@ -458,4 +458,8 @@ - (void)acceptDropInfoAlertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnC
[PBGitDefaults suppressDialogWarningForDialog:kDialogAcceptDroppedRef];
}

- (void)dealloc {
historyController = nil;
}

@end
2 changes: 1 addition & 1 deletion Classes/Controllers/PBViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@interface PBViewController : NSViewController {
__weak PBGitRepository *repository;
__weak PBGitWindowController *superController;
PBGitWindowController *superController;

NSString *status;
BOOL isBusy;
Expand Down
4 changes: 4 additions & 0 deletions Classes/Controllers/PBViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ - (id)initWithRepository:(PBGitRepository *)theRepository superController:(PBGit
return self;
}

- (void)dealloc {
superController = nil;
}

- (void)closeView
{
[self unbind:@"repository"];
Expand Down

0 comments on commit 5a9bf26

Please sign in to comment.