Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -221,9 +221,11 @@ void sys_alsa_close_midi() ...@@ -221,9 +221,11 @@ void sys_alsa_close_midi()
if(midi_handle) if(midi_handle)
{ {
snd_seq_close(midi_handle); snd_seq_close(midi_handle);
midi_handle = NULL;
if(midiev) if(midiev)
{ {
snd_midi_event_free(midiev); snd_midi_event_free(midiev);
midiev = NULL;
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment