From 57a0a4c06635783ff6f48874b131e95fe9ab35c8 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 25 May 2019 10:31:23 +0100 Subject: [PATCH] Fixing crash when loaded module, using proper function liberate them. --- src/gamedata/textures/animations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gamedata/textures/animations.cpp b/src/gamedata/textures/animations.cpp index 644718bc4..0132fc336 100644 --- a/src/gamedata/textures/animations.cpp +++ b/src/gamedata/textures/animations.cpp @@ -73,7 +73,7 @@ FAnimDef *FTextureManager::AddAnim (FAnimDef *anim) if (mAnimations[i]->BasePic == anim->BasePic) { // Found one! - free (mAnimations[i]); + M_Free (mAnimations[i]); mAnimations[i] = anim; return anim; }