From 5add93d60ab75c6cbbabd20fca0e5f52a0701242 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/textures/animations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures/animations.cpp b/src/textures/animations.cpp index 27370fbf6..feb182d16 100644 --- a/src/textures/animations.cpp +++ b/src/textures/animations.cpp @@ -76,7 +76,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; }