Skip to content
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

Fix memory leak when destroying text #430

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

MirkoCovizzi
Copy link
Contributor

The engine's DestroyText function is
never called, as well as the frees for some
internal components.
This fixes memory leaks reported by some users.

The engine's `DestroyText` function is
never called, as well as the frees for some
internal components.
This fixes memory leaks reported by some users.

Signed-off-by: Mirko Covizzi <[email protected]>
@MirkoCovizzi
Copy link
Contributor Author

MirkoCovizzi commented Nov 13, 2024

Fixes: #412 (comment) (tested)
Fixes: #425 (tested, after fixing the main loop by adding SDL_PollEvent)

@MirkoCovizzi
Copy link
Contributor Author

MirkoCovizzi commented Nov 13, 2024

@captain0xff @bmrhoads Please let me know if this works for you

@captain0xff
Copy link
Contributor

Yes, this fixes the leak on my end.

@slouken slouken merged commit 4a8bda9 into libsdl-org:main Nov 14, 2024
@slouken
Copy link
Collaborator

slouken commented Nov 14, 2024

Merged, thanks!

@bmrhoads
Copy link

Yeah, it's working great thank you

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.

4 participants