Browse Source
A popup-like error dialog in selhero resulted in a heap-use-after-free: https://gist.github.com/glebm/f014bd87f066d2b79965b7c48bd8f6d7 This is because the popup's `Deinit()` freed the background art. The fix is simply to not free the background art. This is OK because the popup never has a background. It used to load an empty background in the past just to load the palette but luckily it no longer does (otherwise this would require more work). Also, fixes dialog rendering: 1. Fixes what is rendered behind the dialog. 2. Draws the mouse (if possible) regardless of whether the background is present. 3. Clears the screen if the background doesn't cover it completely. Fixes #4195pull/5555/head
4 changed files with 15 additions and 12 deletions
Loading…
Reference in new issue