Clean up dynamically allocated memory for an event.
void SDL_CleanupEvent(SDL_Event *event);
|event||a pointer to the event that should be cleaned up|
Some events have dynamically allocated data that must be cleaned up when the event is processed. If you handle any of these events, you should call SDL_CleanupEvent() after processing them: SDL_EVENT_DROP_FILE SDL_EVENT_DROP_TEXT SDL_EVENT_SYSWM SDL_EVENT_TEXT_EDITING
It is safe, but not necessary, to call this function for other event types.
This function is available since SDL 3.0.0.