mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-24 22:22:21 +00:00
iPerformance and GC improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13726 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
82c725d5c5
commit
e7b980cdda
15 changed files with 167 additions and 114 deletions
|
@ -464,6 +464,7 @@ static SEL eqSel;
|
|||
}
|
||||
_count--;
|
||||
RELEASE(_contents_array[_count]);
|
||||
_contents_array[_count] = 0;
|
||||
}
|
||||
|
||||
- (void) removeObject: (id)anObject
|
||||
|
@ -504,6 +505,7 @@ static SEL eqSel;
|
|||
_contents_array[pos-1] = _contents_array[pos];
|
||||
}
|
||||
_count--;
|
||||
_contents_array[_count] = 0;
|
||||
RELEASE(obj);
|
||||
}
|
||||
}
|
||||
|
@ -533,6 +535,7 @@ static SEL eqSel;
|
|||
_contents_array[index] = _contents_array[index+1];
|
||||
index++;
|
||||
}
|
||||
_contents_array[_count] = 0;
|
||||
RELEASE(obj); /* Adjust array BEFORE releasing object. */
|
||||
}
|
||||
|
||||
|
@ -560,6 +563,7 @@ static SEL eqSel;
|
|||
_contents_array[pos-1] = _contents_array[pos];
|
||||
}
|
||||
_count--;
|
||||
_contents_array[_count] = 0;
|
||||
RELEASE(obj);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue