-
Notifications
You must be signed in to change notification settings - Fork 13
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
Crashes on load, SDL_Free #22
Comments
Same issue here. Replacing I can only imagine that older versions of SDL used to implement |
Same issue here too. It's interesting to know this |
Well, it's not a bug in SDL - it's perfectly reasonable that if a library offers its own memory management functions ( That's the core issue, either the allocation should be replaced with |
For whatever reason, the game crashes when loading. I am compiling with Visual Studio 2022, for x64.
I hunted down the culprit in the form of:
SDL_free(fullpath);
Commenting out that in a couple of places did the trick. As to why that fixes things is an excellent question to which I don't have an answer at the moment ;).
Tried changing it to just free(fullpath); and that worked fine, not sure why the code is using SDL_free when it's not allocated by SDL, but hey. It's something.
The text was updated successfully, but these errors were encountered: