mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:20:38 +00:00
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:
parent
c295765267
commit
c7efda6fab
2 changed files with 8 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue