| 230 | } |
| 231 | |
| 232 | void Scheduler::cleanup() { |
| 233 | for (auto item : _updateList) { |
| 234 | item->target->release(); |
| 235 | } |
| 236 | for (auto item : _fixedUpdateList) { |
| 237 | item->target->release(); |
| 238 | } |
| 239 | _updateList.clear(); |
| 240 | _fixedUpdateList.clear(); |
| 241 | _fixedUpdateObjects.clear(); |
| 242 | _updateObjects.clear(); |
| 243 | _actionList->clear(); |
| 244 | Object::cleanup(); |
| 245 | } |
| 246 | |
| 247 | /* SystemTimer */ |
| 248 |