mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
Fixing crash when loaded module, using proper function liberate them.
This commit is contained in:
parent
4bcdd1565a
commit
5add93d60a
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ FAnimDef *FTextureManager::AddAnim (FAnimDef *anim)
|
||||||
if (mAnimations[i]->BasePic == anim->BasePic)
|
if (mAnimations[i]->BasePic == anim->BasePic)
|
||||||
{
|
{
|
||||||
// Found one!
|
// Found one!
|
||||||
free (mAnimations[i]);
|
M_Free (mAnimations[i]);
|
||||||
mAnimations[i] = anim;
|
mAnimations[i] = anim;
|
||||||
return anim;
|
return anim;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue