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:
iobyte 2024-05-23 18:51:38 +00:00
parent 1a2ecb4248
commit fe3c838688

View file

@ -741,6 +741,7 @@ SimShutdown(void)
for (ncar = 0; ncar < SimNbCars; ncar++) {
car = &(SimCarTable[ncar]);
SimEngineShutdown(car);
delete car->options;
}
free(SimCarTable);
SimCarTable = 0;