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:
Plagman 2006-12-16 23:18:11 +00:00
parent ccb6ff7141
commit 5c4f5b3744
2 changed files with 6 additions and 0 deletions

View File

@ -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.