fix memleak due to new md2-md3 conversion code.

git-svn-id: https://svn.eduke32.com/eduke32@801 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
qbix79 2008-06-13 08:03:30 +00:00
parent 8107341e87
commit 8bef3fed96

View file

@ -1979,9 +1979,11 @@ static void md3free(md3model *m)
if (m->head.flags == 1337)
{
if (s->shaders) free(s->shaders);
}
//Currently flags are set to 0.
if (s->uv) free(s->uv);
if (s->xyzn) free(s->xyzn);
}
// }
}
free(m->head.surfs);
}