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

Memory Leak at SDL_DestroyRenderer in opengl mode #425

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

Memory Leak at SDL_DestroyRenderer in opengl mode #425

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: Linux, x86_64

Comments on the original bug report:

On 2011-06-09 00:39:19 +0000, Dimitris Zenios wrote:

Created attachment 618
Patch to fix leak

There is a memory leak of GL_ShaderContext when SDL_DestroyRenderer is called in opengl mode.

==22655== 168 bytes in 1 blocks are definitely lost in loss record 79 of 144
==22655== at 0x4026D34: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22655== by 0x4EA0EFC: GL_CreateShaderContext (SDL_shaders_gl.c:274)
==22655== by 0x4EA0370: GL_CreateRenderer (SDL_render_gl.c:331)
==22655== by 0x4E9B23F: SDL_CreateRenderer (SDL_render.c:166)
==22655== by 0x401438: main (main.c:85)

Attached patch fixes this issue

On 2011-07-16 14:59:53 +0000, Ryan C. Gordon wrote:

This is fixed in hg changeset 0d221d6ffac8, thanks!

--ryan.

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