Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
xycaleth committed Nov 11, 2023
1 parent 4d0dfaf commit e8454e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codemp/rd-rend2/tr_ghoul2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4373,6 +4373,8 @@ qboolean R_LoadMDXM(model_t *mod, void *buffer, const char *mod_name, qboolean &
surf_indices
);

ri.Hunk_FreeTempMemory(surf_indices);

surf = (mdxmSurface_t *)((byte *)surf + surf->ofsEnd);
}

Expand Down

0 comments on commit e8454e3

Please sign in to comment.