Sam Lantinga
Sam Lantinga
Great, can you get a call stack for those 88 bytes?
It looks like this is an SDL error buffer that's allocated from a WGI service thread. Unfortunately there isn't a good way to know when that thread is finished, so...
I'm not sure how those changes would result in 120 bytes leaking. We're doing fewer allocations, not more... ?
I believe this is fixed in the latest SDL release. Please feel free to reopen this if that's not the case.
Do you have a suggested change to improve the documentation?
Yep, I'm surprised there isn't already a bug for this, but this would be great to add in the SDL 3.0 milestone. Feel free to submit a PR that adds...
This is implemented for SDL3!
I added some comments, but in general this looks good. Thanks!
Merged, thanks!
It needs more testing, but this seems reasonable to backport to SDL2.