mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +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
|
||||
if (skins != NULL)
|
||||
{
|
||||
for (i=0;i<info.numSkins;i++)
|
||||
{
|
||||
if (skins[i]!=NULL) delete skins[i];
|
||||
}
|
||||
// skins are managed by the texture manager so they must not be deleted here.
|
||||
delete [] skins;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue