forked from speed-dreams/speed-dreams-code
fix a memory leak found by valgrind
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7018 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 040ed4e5f69513d5f761a7f8acc570e32b6e859b Former-commit-id: f4c427d238d1676fb16831d7e9953e569842dcf5
This commit is contained in:
parent
8805b3a4d6
commit
9ef82ef64b
1 changed files with 4 additions and 0 deletions
|
@ -1087,7 +1087,11 @@ void ReSituationUpdater::freezSituation(tRmInfo*& pSituation)
|
|||
|
||||
// s
|
||||
if (pSituation->s)
|
||||
{
|
||||
if (pSituation->s->cars)
|
||||
free(pSituation->s->cars);
|
||||
free(pSituation->s);
|
||||
}
|
||||
|
||||
// rules
|
||||
if (pSituation->rules)
|
||||
|
|
Loading…
Reference in a new issue