mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 23:32:04 +00:00
- fixed: Since model skins are managed by the texture manager, the model code may not delete them itself.
This commit is contained in:
parent
0f8ed0123f
commit
ac0c07a51b
1 changed files with 1 additions and 4 deletions
|
@ -222,10 +222,7 @@ FDMDModel::~FDMDModel()
|
||||||
// clean up
|
// clean up
|
||||||
if (skins != NULL)
|
if (skins != NULL)
|
||||||
{
|
{
|
||||||
for (i=0;i<info.numSkins;i++)
|
// skins are managed by the texture manager so they must not be deleted here.
|
||||||
{
|
|
||||||
if (skins[i]!=NULL) delete skins[i];
|
|
||||||
}
|
|
||||||
delete [] skins;
|
delete [] skins;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue