Fixed a memory leak. See the ChangeLog for the details.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16107 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Ludovic Marcotte 2003-03-02 18:50:07 +00:00
parent 93d7e12764
commit 6f7cd1c96b

View file

@ -502,7 +502,6 @@ numberOfRowsInColumn: (int)column
- (void) dealloc - (void) dealloc
{ {
TEST_RELEASE(_dataSource);
RELEASE(_buttonCell); RELEASE(_buttonCell);
RELEASE(_popUpList); RELEASE(_popUpList);
@ -629,7 +628,7 @@ numberOfRowsInColumn: (int)column
if (!_usesDataSource) if (!_usesDataSource)
NSLog(@"Method Invalid: ComboBox does not use dataSource"); NSLog(@"Method Invalid: ComboBox does not use dataSource");
else else
ASSIGN(_dataSource, aSource); _dataSource = aSource;
} }
- (void) addItemWithObjectValue: (id)object - (void) addItemWithObjectValue: (id)object