Skip to content

Commit

Permalink
free unused resources
Browse files Browse the repository at this point in the history
  • Loading branch information
computermouth committed Nov 16, 2023
1 parent a291ff7 commit 0ac7184
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion c1k3-assets
2 changes: 2 additions & 0 deletions map.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0ac7184

Please sign in to comment.