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
1 changed files with 2 additions and 2 deletions

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