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:
CaS 2002-05-28 05:23:36 +00:00
parent 82c725d5c5
commit e7b980cdda
15 changed files with 167 additions and 114 deletions

View file

@ -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);
}
}