Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Unix: Don't send quit events during signal handler.
Make note to send it, and send next time we SDL_PumpEvents(). Otherwise, we might be trying to use malloc() to push a new event on the queue while a signal is interrupting malloc() elsewhere, usually causing a crash. Fixes Bugzilla #2870.
- Loading branch information
Showing
with
19 additions
and 3 deletions.
- +2 −0 src/events/SDL_events.c
- +2 −0 src/events/SDL_events_c.h
- +15 −3 src/events/SDL_quit.c