Do a final pass freeing temporary memory when we quit.

Fixes https://github.com/libsdl-org/SDL/issues/10169
This commit is contained in:
Sam Lantinga
2024-07-03 18:46:51 -07:00
parent a04596c9a7
commit 9d47daef0a
3 changed files with 4 additions and 1 deletions

View File

@@ -559,6 +559,8 @@ void SDL_Quit(void)
*/
SDL_memset(SDL_SubsystemRefCount, 0x0, sizeof(SDL_SubsystemRefCount));
SDL_FlushEventMemory(0);
SDL_CleanupTLS();
SDL_FreeEnvironmentMemory();