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 1562 - SDL_RenderPresent(renderer) lead to memeory leak
Summary: SDL_RenderPresent(renderer) lead to memeory leak
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.0
Depends on:
Blocks:
 
Reported: 2012-08-02 00:02 UTC by zhuweitao
Modified: 2013-07-27 05:37 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhuweitao 2012-08-02 00:02:10 UTC
while(1){
            SDL_RenderPresent(renderer);
}

my code is like that,that it cost more and more memeory??talk me ,why?

HG 2.0 and SDL1.3 (sorry my poor English)
Comment 1 Alexander Hirsch 2012-08-26 08:08:47 UTC
I cannot confirm this, using either the software or OpenGL renderer.

I'm on Linux 3.5.2-ck with an integrated Intel Pineview using the i915 driver, version 2.20.4. Mesa is on 8.0.4.
SDL is on revision 3a098f2d4dea.
Comment 2 Philipp Wiesemann 2012-09-01 03:33:36 UTC
Maybe not really related to this bug but there is a memory leak if setup fails in src/render/SDL_yuv_sw.c line 1048 where swdata is not freed.
Comment 3 Ryan C. Gordon 2013-07-12 22:15:38 UTC
(Sorry if you get a lot of copies of this email, we're touching dozens of bug reports right now.)

Tagging a bunch of bugs as target-2.0.0, Priority 2.

This means we're in the final stretch for an official SDL 2.0.0 release! These are the bugs we really want to fix before shipping if humanly possible.

That being said, we don't promise to fix them because of this tag, we just want to make sure we don't forget to deal with them before we bless a final 2.0.0 release, and generally be organized about what we're aiming to ship.

Hopefully you'll hear more about this bug soon. If you have more information (including "this got fixed at some point, nevermind"), we would love to have you come add more information to the bug report when you have a moment.

Thanks!
--ryan.
Comment 4 Ryan C. Gordon 2013-07-20 21:18:08 UTC
(In reply to comment #2)
> Maybe not really related to this bug but there is a memory leak if setup
> fails in src/render/SDL_yuv_sw.c line 1048 where swdata is not freed.

This is fixed here: http://hg.libsdl.org/SDL/rev/d2d8576aa3a0

I can't confirm the original bug either, though.

--ryan.
Comment 5 Sam Lantinga 2013-07-27 05:37:55 UTC
No response for over 6 months and we can't reproduce it here.

zhuweitao, please reopen this bug with more information if you're still seeing the problem.