Made event and temporary string memory thread-local and added SDL_FreeEventMemory()

Fixes https://github.com/libsdl-org/SDL/issues/10283
This commit is contained in:
Sam Lantinga
2024-07-16 10:15:23 -07:00
parent ec3bb4c029
commit 4aeabb3c3b
7 changed files with 107 additions and 49 deletions

View File

@@ -582,7 +582,6 @@ void SDL_Quit(void)
*/
SDL_memset(SDL_SubsystemRefCount, 0x0, sizeof(SDL_SubsystemRefCount));
SDL_FlushEventMemory(0);
SDL_FreeEnvironmentMemory();
SDL_QuitMainThread();