mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
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:
parent
8107341e87
commit
8bef3fed96
1 changed files with 3 additions and 1 deletions
|
@ -1979,9 +1979,11 @@ static void md3free(md3model *m)
|
||||||
if (m->head.flags == 1337)
|
if (m->head.flags == 1337)
|
||||||
{
|
{
|
||||||
if (s->shaders) free(s->shaders);
|
if (s->shaders) free(s->shaders);
|
||||||
|
}
|
||||||
|
//Currently flags are set to 0.
|
||||||
if (s->uv) free(s->uv);
|
if (s->uv) free(s->uv);
|
||||||
if (s->xyzn) free(s->xyzn);
|
if (s->xyzn) free(s->xyzn);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
free(m->head.surfs);
|
free(m->head.surfs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue