diff --git a/c1k3-assets b/c1k3-assets index 127e482..8b44b52 160000 --- a/c1k3-assets +++ b/c1k3-assets @@ -1 +1 @@ -Subproject commit 127e4826f6ecaa6b90b624b8b36777f151074564 +Subproject commit 8b44b52c036a214db3b7538ea590d0684a94ad77 diff --git a/map.c b/map.c index b0295c9..d3fb069 100644 --- a/map.c +++ b/map.c @@ -375,6 +375,8 @@ void mpack_map_parse(const char * data, const size_t data_len) { // insert tmp_entt into ref_entt_list[ENTITY_ID_X] entity_id_t id = map_lookup_entity(name, name_len); if(id == __ENTITY_ID_END) { + vector_free(tmp_entt.frames); + free(tmp_entt.frame_names); continue; } vector_set(ref_entt_list, id, &tmp_entt);