[SDL] [SDL_Mixer] Music ownership inconsistencies

Matthew Orlando maorlando at gmail.com
Sat Jul 9 15:48:03 PDT 2011


On Mon, Jun 20, 2011 at 9:43 PM, Ryan C. Gordon <icculus at icculus.org> wrote:

>
>  I'd really prefer to have it work by fixing the problem inside of
>> SDL_Mixer, though.
>>
>
> It needs to be fixed in SDL_mixer. Most RWOPS also free() themselves on
> close, which means that the second attempt to close it will result in a
> free() of a bogus pointer, even if its internal data was NULL'd out.
>
> I didn't realize this was such a mess in SDL_mixer. We should be very clear
> about who is responsible for cleanup, and when cleanup is done...and we
> should fix code in SDL_mixer that breaks those rules.
>
> --ryan.


I've been poking around with this in my spare time. You can browse my repo
at http://remote.cogwheel.info/hg

See also
http://lists.libsdl.org/htdig.cgi/sdl-libsdl.org/2011-April/080525.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20110709/c1a73b84/attachment-0007.htm>


More information about the SDL mailing list