Automatically clean up memory associated with events

This commit is contained in:
Sam Lantinga committed 2023-11-05 09:14:11 -08:00
1 parent 1a83bf2399
commit 70c149c88f
16 files changed
+152 -148

No files matched your search

+2 -3
View File
@@ -175,9 +175,8 @@ int SDL_AppEvent(const SDL_Event *event);
```
This will be called whenever an SDL event arrives, on the thread that runs
SDL_AppIterate. You should not call SDL_CleanupEvent() on the provided
event, and your app should also not call SDL_PollEvent, SDL_PumpEvent, etc,
as SDL will manage all this for you. Return values are the same as from
SDL_AppIterate. Your app should also not call SDL_PollEvent, SDL_PumpEvent,
etc, as SDL will manage all this for you. Return values are the same as from
SDL_AppIterate(), so you can terminate in response to SDL_EVENT_QUIT, etc.