mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
Freed before read, oops!
This commit is contained in:
parent
d0fac1988a
commit
aa158cccd9
1 changed files with 1 additions and 2 deletions
|
@ -1068,14 +1068,13 @@ void R_ParseSPRTINFOLump(UINT16 wadNum, UINT16 lumpNum)
|
|||
{
|
||||
if (!stricmp(sprinfoToken, "SPRITE") || !stricmp(sprinfoToken, "SPRITE2"))
|
||||
{
|
||||
Z_Free(sprinfoToken);
|
||||
R_ParseSpriteInfo(!stricmp(sprinfoToken, "SPRITE2"));
|
||||
Z_Free(sprinfoToken);
|
||||
}
|
||||
else
|
||||
I_Error("Error parsing SPRTINFO lump: Unknown keyword \"%s\"", sprinfoToken);
|
||||
sprinfoToken = M_GetToken(NULL);
|
||||
}
|
||||
Z_Free(sprinfoToken);
|
||||
Z_Free((void *)sprinfoText);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue