mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 08:51:08 +00:00
- fixed voxels leaking memory.
This commit is contained in:
parent
efe4261932
commit
745d78d8d7
5 changed files with 18 additions and 1 deletions
|
@ -842,6 +842,11 @@ void voxfree(voxmodel_t *m)
|
|||
|
||||
DO_FREE_AND_NULL(m->mytex);
|
||||
DO_FREE_AND_NULL(m->quad);
|
||||
for (auto& tex : m->texid)
|
||||
{
|
||||
if (tex) delete tex;
|
||||
tex = nullptr;
|
||||
}
|
||||
|
||||
Xfree(m);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue