mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-21 11:01:36 +00:00
foo being allocated with metadata based allocator needs to
be freed similarly.
(cherry picked from commit 2a59327aeb
)
This commit is contained in:
parent
286e1ded88
commit
4902143d7b
1 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,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
|
||||
|
@ -105,14 +105,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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue