Skip to content

Commit

Permalink
Merge pull request #1186 from JACoders/xycaleth-patch-1
Browse files Browse the repository at this point in the history
Fix memory leak
  • Loading branch information
xycaleth committed Nov 11, 2023
2 parents 4d0dfaf + e8454e3 commit 4c422ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codemp/rd-rend2/tr_ghoul2.cpp
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 4c422ea

Please sign in to comment.