mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-17 16:12:17 +00:00
Fixed mem leak in the history controller.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@12962 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
be70ff6945
commit
cfceb8ab2d
2 changed files with 5 additions and 2 deletions
|
@ -44,7 +44,7 @@
|
|||
[[NSNotificationCenter defaultCenter] postNotificationName:@"FileBecomesEditedNotification" object:file];
|
||||
//[browser selectRow:0 inColumn:0];
|
||||
|
||||
RELEASE(file);
|
||||
AUTORELEASE(file);
|
||||
}
|
||||
|
||||
- (void)setBrowser:(NSBrowser *)aBrowser
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
#import "PCEditorController.h"
|
||||
#import "PCHistoryController.h"
|
||||
|
||||
#define ENABLE_HISTORY
|
||||
|
||||
@interface PCProject (CreateUI)
|
||||
|
||||
- (void)_initUI;
|
||||
|
@ -118,6 +120,7 @@
|
|||
* File Browser
|
||||
*/
|
||||
|
||||
#ifdef ENABLE_HISTORY
|
||||
historyController = [[PCHistoryController alloc] initWithProject:self];
|
||||
|
||||
history = [[NSBrowser alloc] initWithFrame:NSMakeRect(320,372,232,60)];
|
||||
|
@ -132,7 +135,7 @@
|
|||
|
||||
[_c_view addSubview:history];
|
||||
RELEASE(history);
|
||||
|
||||
#endif
|
||||
/*
|
||||
* Left button matrix
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue