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

There might be a memory leak #18

Open
milkydelta opened this issue Jun 17, 2022 · 0 comments
Open

There might be a memory leak #18

milkydelta opened this issue Jun 17, 2022 · 0 comments

Comments

@milkydelta
Copy link

In renderwindow.cpp, there are some functions that render text, specifically the function "renderCenter" and the last overload of "render" (the one that starts on line 87). I noticed that they create an sdl_surface and copy it to an sdl_texture. The surface is freed at the end by a call to SDL_FreeSurface, but there is no call to SDL_DestroyTexture for the texture.

This leaks memory significantly slower than Twini-Golf did, which is why it probably hasn't been noticed.

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

No branches or pull requests

1 participant