libmid: fix potential crash
midiogre: fix warning + leak
Merge branch 'master' of github.com:prozum/midiogre