Memory leak fix in CoreMidi and addition of UserData pointer to error callback.