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

-1
View File
@@ -1728,7 +1728,6 @@ static void loop(void *arg)
AddControllerNameText(event.text.text);
}
}
SDL_CleanupEvent(&event);
break;
case SDL_EVENT_QUIT:
done = SDL_TRUE;