mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
Fixed memory leaks issues with converted MD3s.
git-svn-id: https://svn.eduke32.com/eduke32@420 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ccb6ff7141
commit
5c4f5b3744
2 changed files with 6 additions and 0 deletions
|
@ -1653,6 +1653,12 @@ static void md3free (md3model *m)
|
|||
{
|
||||
s = &m->head.surfs[surfi];
|
||||
if (s->tris) free(s->tris);
|
||||
if (m->head.flags == 1337)
|
||||
{
|
||||
if (s->shaders) free(s->shaders);
|
||||
if (s->uv) free(s->uv);
|
||||
if (s->xyzn) free(s->xyzn);
|
||||
}
|
||||
}
|
||||
free(m->head.surfs);
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue