midiogre: fix warning + leak