- fixed a memory leak and removed debug output.

This commit is contained in:
Christoph Oelckers 2018-02-23 18:57:30 +01:00
parent 88f9f0982c
commit 5da1433c57
2 changed files with 4 additions and 1 deletions

View file

@ -108,6 +108,10 @@ MIDIStreamer::~MIDIStreamer()
{
delete MIDI;
}
if (source != nullptr)
{
delete source;
}
}
//==========================================================================

View file

@ -69,7 +69,6 @@ static int READCHUNK(SFChunk *vp, struct timidity_file *tf)
if (tf_read(vp, 8, 1, tf) != 1)
return -1;
vp->size = LE_LONG(vp->size);
Printf("%.4s %d, %d\n", vp->id, vp->size, tf_tell(tf));
return 1;
}