Automatically clean up memory associated with events
This commit is contained in:
parent
1a83bf2399
commit
70c149c88f
16 changed files with 152 additions and 148 deletions
|
@ -2424,8 +2424,6 @@ int SDLTest_CommonEventMainCallbacks(SDLTest_CommonState *state, const SDL_Event
|
|||
void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done)
|
||||
{
|
||||
*done = SDLTest_CommonEventMainCallbacks(state, event) ? 1 : 0;
|
||||
|
||||
SDL_CleanupEvent(event);
|
||||
}
|
||||
|
||||
void SDLTest_CommonQuit(SDLTest_CommonState *state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue