shorten scope of variable.

This commit is contained in:
Hisham Muhammad 2014-04-21 19:01:15 -03:00
parent 5b30280810
commit 57b393f783
1 changed files with 1 additions and 3 deletions

View File

@ -85,10 +85,8 @@ int Vector_count(Vector* this) {
void Vector_prune(Vector* this) {
assert(Vector_isConsistent(this));
int i;
if (this->owner) {
for (i = 0; i < this->items; i++)
for (int i = 0; i < this->items; i++)
if (this->array[i]) {
Object_delete(this->array[i]);
//this->array[i] = NULL;