Fix crash when testing invalid MIDI file.
authorRobin Gareus <robin@gareus.org>
Thu, 26 Jul 2018 14:59:27 +0000 (16:59 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 26 Jul 2018 14:59:27 +0000 (16:59 +0200)
commit43c76ff23b7267ab3d78965d9ad6ce9bcc6a8b4a
treeb5e37c3d9f27731f290f9334834c902022acb26c
parent1698abc3822837aa1650c2a7cfe15722732cd05a
Fix crash when testing invalid MIDI file.

smf_delete() does not handle NULL pointers. This fixes a crash when
checking if a MIDI source is valid.
libs/evoral/src/SMF.cpp