mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 17:18:44 +08:00
[cpp] Closes #1243, make cleanUpVectorOfPointers() linear in time complexity.
This commit is contained in:
parent
3c5730052d
commit
0919c1b9d2
@ -108,7 +108,7 @@ namespace spine {
|
||||
|
||||
template<typename T>
|
||||
static void cleanUpVectorOfPointers(Vector<T*>& items) {
|
||||
for (size_t i = 0; i < items.size(); ) {
|
||||
for (int i = (int)items.size() - 1; i >= 0; i--) {
|
||||
T* item = items[i];
|
||||
|
||||
delete item;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user