Minor memory leak in SDL_mixer (Timidity)


enclosed a patch that makes close_music() call a new function,
Timidity_Exit(), to tidy up Timidity.

Timidity_Exit() calls free_instruments() which in turn calls
free_bank() where a small change has been made to free up the
string names that are allocated when the config file is scanned.

The memory blocks resample_buffer and common_buffer are also

Should be able to remove this comment from ‘timidity.c’ as well!

/* Allocate memory for mixing (WARNING: Memory leak!) */

Hope it is useful,


-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL_mixer-2002.07.05.pat
Type: application/octet-stream
Size: 2281 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020704/4e801fe3/attachment.obj