release the item after removing it from the array, rather than before

This commit is contained in:
Bill Currie 2006-12-20 11:33:40 +00:00 committed by Jeff Teunissen
parent 165600adc5
commit de5bf80eb8

View file

@ -68,10 +68,10 @@
for (i = 0; i < count; i++)
if (array[i] == item) {
[item release];
count--;
for (n = i; n < count; n++)
for (n = i--; n < count; n++)
array[n] = array[n + 1];
[item release];
}
return;
}