forked from RigsOfRods/rigs-of-rods
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed memory leaks in message loop processing (main.cpp).
Most of them were edge cases, such as ACTOR_SPAWN request outside of simulation, but nonetheless it's a good practice to always `delete` allocated memory. Also the coding style was unified - all the `case` blocks now use `static_cast<>` for type conversion and are formatted `case ABC: { /*profit*/ break; }`
- Loading branch information
Showing
2 changed files
with
100 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters