We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2699

Summary: possible memory leak in GL_RenderReadPixels
Product: SDL Reporter: Benoit Pierre <benoit.pierre>
Component: renderAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.3   
Hardware: x86_64   
OS: Linux   
Attachments: Fix possible memory leak in GL_RenderReadPixels

Description Benoit Pierre 2014-08-23 18:45:53 UTC
Created attachment 1838 [details]
Fix possible memory leak in GL_RenderReadPixels

If glReadPixels returns an error, than the temporary buffer is not deallocated.
Comment 1 Sam Lantinga 2014-08-24 07:02:57 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/92ca74200ea5