| Summary: | SDL_RenderPresent(renderer) lead to memeory leak | ||
|---|---|---|---|
| Product: | SDL | Reporter: | zhuweitao <p15018405735> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | 1zeeky, icculus, philipp.wiesemann |
| Version: | HG 2.0 | Keywords: | target-2.0.0 |
| Hardware: | x86_64 | ||
| OS: | Linux | ||
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. 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. (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. (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. 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. |
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)