Skip to content

sdl3: Fix SDL_GetPrefPath() SDL_free()#117

Closed
RobLoach wants to merge 1 commit into
icculus:mainfrom
RobLoach:sdl3-memory-fix
Closed

sdl3: Fix SDL_GetPrefPath() SDL_free()#117
RobLoach wants to merge 1 commit into
icculus:mainfrom
RobLoach:sdl3-memory-fix

Conversation

@RobLoach

Copy link
Copy Markdown
Contributor

We should likely make sure SDL_GetPrefPath() call uses SDL_free(). The PhysFS allocator may be different than SDL's, so this ensures it's cleared by the same allocator across both uses.

  • I confirm that I am the author of this code and release it to the PhysicsFS project under the Zlib license. This contribution does not contain code from other sources, including code generated by a Large Language Model ("AI").

@icculus

icculus commented May 28, 2026

Copy link
Copy Markdown
Owner

I beat you to this one, in bf429aa. :)

@icculus icculus closed this May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants