Fixing crash when loaded module, using proper function liberate them.

This commit is contained in:
David Carlier 2019-05-25 10:31:23 +01:00 committed by drfrag
parent 4bcdd1565a
commit 5add93d60a

View file

@ -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;
} }