Ryan C. Gordon
icculus at clutteredmind.org
Mon Jul 29 04:37:48 EDT 2002
Timidity has a memory leak.
I fixed a few in there (now in CVS), but there's something with
Timidity_Init() that isn't cleaned up on Timidity_Exit(), and I can't
figure out what:
==21633== 1235 bytes in 62 blocks are definitely lost in loss record 4 of 4
==21633== at 0x4004314B: malloc (vg_clientfuncs.c:100)
==21633== by 0x4024C96E: safe_malloc (common.c:97)
==21633== by 0x40257305: read_config_file (timidity.c:311)
==21633== by 0x40257D6B: Timidity_Init (timidity.c:431)
==21633== by 0x40249F9B: MIDI_init (midi.c:79)
==21633== by 0x4023FEEA: Sound_Init (SDL_sound.c:227)
==21633== by 0x804A890: main (playsound.c:788)
==21633== by 0x40683577: (within /lib/libc-2.1.3.so)
==21633== by 0x80493C1: (within /usr/local/bin/playsound)
You can see my printf() spam in CVS (sorry!), but if someone can figure
out what's wrong in there, I'd appreciate it.
Playing a midi didn't cause any leaks.
I'll Valgrind the rest of the decoders later.
More information about the sdlsound