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:
Philippe C.D. Robert 2002-03-03 13:47:38 +00:00
parent be70ff6945
commit cfceb8ab2d
2 changed files with 5 additions and 2 deletions

View file

@ -44,7 +44,7 @@
[[NSNotificationCenter defaultCenter] postNotificationName:@"FileBecomesEditedNotification" object:file];
//[browser selectRow:0 inColumn:0];
RELEASE(file);
AUTORELEASE(file);
}
- (void)setBrowser:(NSBrowser *)aBrowser

View file

@ -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
*/