Fix the way remove all elements from pointer array

This commit is contained in:
DreamPiggy 2017-12-19 13:11:51 +08:00
parent 91ff801611
commit ac5ec6997c
1 changed files with 1 additions and 3 deletions

View File

@ -134,9 +134,7 @@ static char animationLoadOperationKey;
[operation cancel];
}
}
for (size_t i = 0; i < operationsArray.count; i++) {
[operationsArray removePointerAtIndex:i];
}
operationsArray.count = 0;
}
}
}