mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +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
63ed41067f
commit
c6cf00fc56
2 changed files with 8 additions and 6 deletions
|
@ -3,8 +3,11 @@
|
|||
* Source/NSTextField.m: ([-dealloc]) morph self to be an NSTextView
|
||||
so that when dealloc is re-called, any subclass dealloc methods
|
||||
don't get re-called.
|
||||
* Source/NSTableView.m: Memory leak fix added as suggested by
|
||||
Stefan Urbanek. NOTE ... selection code looks very inefficient,
|
||||
perhaps we should look into whether it is worth optimising?
|
||||
|
||||
2002-10-27 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
|
||||
2002-10port-Yves Rivaille <pyrivail@ens-lyon.fr>
|
||||
|
||||
* Source/NSMenuView.m ([NSMenuView -trackWithEvent:]):
|
||||
new tracking code. The menu feels snappier now (at least for me).
|
||||
|
|
|
@ -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…
Reference in a new issue