mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-03 04:06:05 +00:00
M_ClearConditionSet: fix memory leak
This commit is contained in:
parent
eeb6e40909
commit
22f9467e71
1 changed files with 6 additions and 1 deletions
|
|
@ -511,9 +511,14 @@ void M_ClearConditionSet(UINT8 set)
|
|||
{
|
||||
if (conditionSets[set].numconditions)
|
||||
{
|
||||
while (conditionSets[set].numconditions > 0)
|
||||
{
|
||||
--conditionSets[set].numconditions;
|
||||
Z_Free(conditionSets[set].condition[conditionSets[set].numconditions].pendingstring);
|
||||
}
|
||||
|
||||
Z_Free(conditionSets[set].condition);
|
||||
conditionSets[set].condition = NULL;
|
||||
conditionSets[set].numconditions = 0;
|
||||
}
|
||||
gamedata->achieved[set] = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue