[SDL] [SDL_Mixer] Music ownership inconsistencies
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.
I've been poking around with this in my spare time. You can browse my repo
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL