-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
timer: Keep a list of valid timers so SDL_RemoveTimer can't crash.
This is how classic SDL 1.2 behaves, too. Reference Issue #143.
- Loading branch information
Showing
2 changed files
with
81 additions
and
27 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
Should we free all of the added timers upon quit? Or should we assume that it's user's responsibility? (Real SDL-1.2 doesn't seem to free its list, as far as I can see - don't know whether it is for a reason.)