-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SDL2] Run tests with --trackmem #10637
Conversation
SDL_Mutex or SDL_SpinLock cannot be used as these use SDL_malloc internally. Backport of c7a1876
9411ae0
to
aefa0ce
Compare
Is running SDL2 with On Windows, I see these leaks
On Linux, I see these leaks
Macos also has some leaks (no stacktrace because libunwind is not available)
I'd like to port these changes to sdl2-compat, and enable it on its ci. |
We've done a bunch of work on SDL3 to clean up all leaks in SDL_Quit(), which we aren't planning to backport to SDL2. I'm fine if someone wants to do that work, but some of it involved API changes and significant rework, so I don't think it's worth it for now. |
Understood. I'll just leave the ci |
(ported from SDL3)
2cf9bfc
to
f2f0807
Compare
f2f0807
to
8ae28ec
Compare
After sync'ing sdl2-compat test programs with latest sdl2, I'm getting
All of those Do we prefer changing those |
Calls to For SDL2, I'd say to add |
It looks like these came from your adding command line parsing. I'm switching them to returns. |
I too am one of those heretics, so, you're not alone |
OK, leaving to you. Will sync sdl2-compat when it's done. |
I started into the rabbit hole of fixing SDL2 test program return values and quickly backed right out. Feel free to make whatever change you want for SDL2. Changing them to return or adding |
I chose to changing those three to use returns |
This backports c7a1876 and b68ac01 to enable
--trackmem
on ci.Description
Existing Issue(s)