| Summary: | FLAC_close does not properly close SDL_RWops structure. | ||
|---|---|---|---|
| Product: | SDL_mixer | Reporter: | tigerfishdaisy |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | unspecified | ||
| Hardware: | Other | ||
| OS: | Windows 7 | ||
|
Description
tigerfishdaisy
2010-05-15 15:38:24 UTC
The API doesn't have a 'freesrc' parameter which is usually used to indicate whether you manage the memory or you expect SDL_mixer to own it. Right now it always assumes that you manage it, which results in memory leaks in the file-based interface. This isn't technically a bug, as I mentioned above. The API assumes that you manage the life cycle of the rwops structure and close it after Mix_FreeMusic(). There was a memory leak when using the file interface, which has been fixed: http://hg.libsdl.org/SDL_mixer/rev/565549e046b0 Thanks! |