code: fixed memleak in flecs query

isolation
Vladyslav Hrytsenko 2022-09-29 16:21:40 +03:00
parent 5d7ad90e0d
commit 914b72c44f
1 changed files with 1 additions and 0 deletions

View File

@ -241,6 +241,7 @@ uint64_t network_server_get_entity(void *peer_id, uint16_t view_id) {
for (int i = 0; i < it.count; i++) {
if (p[i].peer == (uintptr_t)peer_id && p[i].view_id == view_id) {
ecs_iter_fini(&it);
return it.entities[i];
}
}