mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
foo being allocated with metadata based allocator needs to
be freed similarly.
This commit is contained in:
parent
e5249f302a
commit
2a59327aeb
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue