Not retaining outlets. Fixing memory leak for favicon.

svn path=/trunk/netsurf/; revision=11821
This commit is contained in:
Sven Weidauer 2011-02-26 10:35:44 +00:00
parent bccdea6026
commit 2a693de4df
5 changed files with 10 additions and 9 deletions

View File

@ -28,8 +28,8 @@
NSMenu *defaultMenu;
}
@property (readwrite, retain, nonatomic) IBOutlet NSMenu *defaultMenu;
@property (readwrite, retain, nonatomic) IBOutlet TreeView *view;
@property (readwrite, assign, nonatomic) IBOutlet NSMenu *defaultMenu;
@property (readwrite, assign, nonatomic) IBOutlet TreeView *view;
- (IBAction) openBookmarkURL: (id) sender;
- (IBAction) addBookmark: (id) sender;

View File

@ -39,7 +39,7 @@ struct browser_window;
@property (readwrite, assign, nonatomic) struct browser_window *browser;
@property (readwrite, copy, nonatomic) NSString *url;
@property (readwrite, retain, nonatomic) IBOutlet BrowserView *browserView;
@property (readwrite, assign, nonatomic) IBOutlet BrowserView *browserView;
@property (readwrite, retain, nonatomic) BrowserWindowController *windowController;
@property (readwrite, copy, nonatomic) NSString *title;
@property (readwrite, copy, nonatomic) NSString *status;

View File

@ -48,6 +48,7 @@
[self setWindowController: nil];
[self setTitle: nil];
[self setStatus: nil];
[self setFavicon: nil];
[super dealloc];
}

View File

@ -32,11 +32,11 @@
BrowserViewController *activeBrowser;
}
@property (readwrite, retain, nonatomic) IBOutlet PSMTabBarControl *tabBar;
@property (readwrite, retain, nonatomic) IBOutlet NSTabView *tabView;
@property (readwrite, retain, nonatomic) IBOutlet URLFieldCell *urlField;
@property (readwrite, retain, nonatomic) IBOutlet NSObjectController *activeBrowserController;
@property (readwrite, retain, nonatomic) IBOutlet NSSegmentedControl *navigationControl;
@property (readwrite, assign, nonatomic) IBOutlet PSMTabBarControl *tabBar;
@property (readwrite, assign, nonatomic) IBOutlet NSTabView *tabView;
@property (readwrite, assign, nonatomic) IBOutlet URLFieldCell *urlField;
@property (readwrite, assign, nonatomic) IBOutlet NSObjectController *activeBrowserController;
@property (readwrite, assign, nonatomic) IBOutlet NSSegmentedControl *navigationControl;
@property (readwrite, assign, nonatomic) IBOutlet NSButton *historyButton;
@property (readwrite, assign, nonatomic) BrowserViewController *activeBrowser;

View File

@ -26,6 +26,6 @@
TreeView *view;
}
@property (readwrite, retain, nonatomic) IBOutlet TreeView *view;
@property (readwrite, assign, nonatomic) IBOutlet TreeView *view;
@end