midiogre: fix memory leaks
Merge branch 'master' of github.com:prozum/midiogre