Fix crash when testing unsupported MIDI file
authorRobin Gareus <robin@gareus.org>
Sun, 8 Apr 2018 00:05:16 +0000 (02:05 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 8 Apr 2018 00:09:35 +0000 (02:09 +0200)
commitdd5f124c60dffe6e637ed7840e501fdfc73884aa
treec7f238c9cbea35939cfd6b25da12a9cde649980a
parent518f8108ac17b241f0dfaaba76931d19ecc70cd6
Fix crash when testing unsupported MIDI file

smf_delete() does not handle NULL, and segfaults instead.

This only crashes with optimized builds.
libsmf will call g_critical() earlier and in that case debug-builds
call UI::handle_fatal() and ask the user to "click to exit".
libs/evoral/src/SMF.cpp