From 2a59327aebcdea245c96dddcb255ed15f8c38c05 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 5 Jul 2018 21:10:07 +0100 Subject: [PATCH] foo being allocated with metadata based allocator needs to be freed similarly. --- src/textures/formats/rawpagetexture.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/textures/formats/rawpagetexture.cpp b/src/textures/formats/rawpagetexture.cpp index d2beade83..0d42544fe 100644 --- a/src/textures/formats/rawpagetexture.cpp +++ b/src/textures/formats/rawpagetexture.cpp @@ -97,7 +97,7 @@ static bool CheckIfRaw(FileReader & data) } else if (ofs >= 64000-1) // Need one byte for an empty column { - free (foo); + M_Free (foo); return true; } else @@ -108,14 +108,14 @@ static bool CheckIfRaw(FileReader & data) { if (foo2[ofs] == 255) { - free (foo); + M_Free (foo); return true; } ofs += foo2[ofs+1] + 4; } if (ofs >= 64000) { - free (foo); + M_Free (foo); return true; } }