Commit 88d2f3cb authored by Albert Gräf's avatar Albert Gräf
Browse files

Reset ALSA MIDI device handles and event buffers when closing, fixes #202.

parent bd8841ba
......@@ -221,9 +221,11 @@ void sys_alsa_close_midi()
if(midi_handle)
{
snd_seq_close(midi_handle);
midi_handle = NULL;
if(midiev)
{
snd_midi_event_free(midiev);
midiev = NULL;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment