Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Free SDL surface after updating the window icon
The SDL surface is no longer needed and will cause a memory leak if not freed. Additionally, the decoded BitmapData should not be unlocked until after updating the window icon, as it may be moved by the GC otherwise.
- Loading branch information
1 parent
420ec23
commit cfdb5bc
Showing
1 changed file
with
17 additions
and
4 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