simuv5: fix memory leak
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9424 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 646b75e73fc21ccfa888df9164c51bf01554586f Former-commit-id: aff6835d23d7f4ad8aff8058fa248ad26addebac
This commit is contained in:
parent
1a2ecb4248
commit
fe3c838688
1 changed files with 1 additions and 0 deletions
|
@ -741,6 +741,7 @@ SimShutdown(void)
|
|||
for (ncar = 0; ncar < SimNbCars; ncar++) {
|
||||
car = &(SimCarTable[ncar]);
|
||||
SimEngineShutdown(car);
|
||||
delete car->options;
|
||||
}
|
||||
free(SimCarTable);
|
||||
SimCarTable = 0;
|
||||
|
|
Loading…
Reference in a new issue