From 6f7cd1c96bcd6e55271971fd0d3857fc2753a709 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Sun, 2 Mar 2003 18:50:07 +0000 Subject: [PATCH] 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 --- Source/NSComboBoxCell.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/NSComboBoxCell.m b/Source/NSComboBoxCell.m index 1633a0b2b..f08a39933 100644 --- a/Source/NSComboBoxCell.m +++ b/Source/NSComboBoxCell.m @@ -502,7 +502,6 @@ numberOfRowsInColumn: (int)column - (void) dealloc { - TEST_RELEASE(_dataSource); RELEASE(_buttonCell); RELEASE(_popUpList); @@ -629,7 +628,7 @@ numberOfRowsInColumn: (int)column if (!_usesDataSource) NSLog(@"Method Invalid: ComboBox does not use dataSource"); else - ASSIGN(_dataSource, aSource); + _dataSource = aSource; } - (void) addItemWithObjectValue: (id)object