Description
Prerequisites
- I have searched for similar issues and confirmed this is not a duplicate
Game Version
- Command & Conquer Generals
- Command & Conquer Generals: Zero Hour
- Other (please specify below)
Bug Description
I didn't test with Generals, but I assume it's exactly the same.
When exiting the score overview window before it's finished drawing, some (or all) of the GameWindow instances are deleted (deleteInstance
), but still drawn apparently, which triggers the address sanitizer here:
Reproduction Steps
- Start a new skirmish game.
- Exit match.
- Don't let the score overview finish but exit to main screen.
- No visual sign but address sanitizer gets triggered because of use-after-free.
Additional Context
I was using windowed mode.