Mmory leak fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14856 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-10-28 09:09:14 +00:00
parent c295765267
commit c7efda6fab
2 changed files with 8 additions and 6 deletions

View file

@ -196,9 +196,9 @@ static void computeNewSelection
int *_selectedRow,
unsigned selectionMode)
{
if ( (selectionMode & ALLOWS_MULTIPLE)
&& (selectionMode & SHIFT_DOWN)
&& (selectionMode & ADDING_ROW))
if ((selectionMode & ALLOWS_MULTIPLE)
&& (selectionMode & SHIFT_DOWN)
&& (selectionMode & ADDING_ROW))
// we add new row to the current selection
{
if (_oldRow == -1)
@ -4293,8 +4293,7 @@ byExtendingSelection: (BOOL)flag
}
// let's sort the _selectedRows
_oldSelectedRows = [[NSSet alloc]
initWithArray: _selectedRows];
_oldSelectedRows = [NSSet setWithArray: _selectedRows];
lastEvent = theEvent;
while (done != YES)