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 - possible memory leak in GL_RenderReadPixels
Summary: possible memory leak in GL_RenderReadPixels
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: 2.0.3
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-23 18:45 UTC by Benoit Pierre
Modified: 2014-08-24 07:02 UTC (History)
0 users

See Also:


Attachments
Fix possible memory leak in GL_RenderReadPixels (586 bytes, patch)
2014-08-23 18:45 UTC, Benoit Pierre
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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