[SDL_MIXER] Does not free some memory on exit with Timidity

Hello,

With Valgrind I saw that some memory used by timidity (samples currently
loaded, and configuration file timidity.cfg) are not freed on exit.
There is no function in timidity to cleanup everything, that could be
called by close_music() in music.c.

I think I will make a patch for it.–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

Le Sat, 2 Jul 2005 10:58:44 +0200
Patrice Mandin <mandin.patrice at wanadoo.fr> a ?crit:

Hello,

With Valgrind I saw that some memory used by timidity (samples
currently loaded, and configuration file timidity.cfg) are not freed
on exit. There is no function in timidity to cleanup everything, that
could be called by close_music() in music.c.

I think I will make a patch for it.

OK, here is the patch for it, at least no more memory leaks when using
timidity in SDL_mixer. If nobody has objections, I would like to commit
the three patches I made this week.–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux
-------------- next part --------------
A non-text attachment was scrubbed…
Name: timidity-leaks.diff.gz
Type: application/octet-stream
Size: 2067 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050702/5e0845e3/attachment.obj

Le Sat, 2 Jul 2005 10:58:44 +0200
Patrice Mandin <mandin.patrice at wanadoo.fr> a ?crit:

Hello,

With Valgrind I saw that some memory used by timidity (samples
currently loaded, and configuration file timidity.cfg) are not freed
on exit. There is no function in timidity to cleanup everything, that
could be called by close_music() in music.c.

I think I will make a patch for it.

OK, here is the patch for it, at least no more memory leaks when using
timidity in SDL_mixer. If nobody has objections, I would like to commit
the three patches I made this week.–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux
-------------- next part --------------
A non-text attachment was scrubbed…
Name: timidity-leaks.diff.gz
Type: application/octet-stream
Size: 2067 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050702/4ba0e5fc/attachment.obj