mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-17 01:31:25 +00:00
Fixing crash when loaded module, using proper function liberate them.
This commit is contained in:
parent
7957686fee
commit
c9c895b420
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,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