fixed a few warnings from clang static analysis

This commit is contained in:
Robin Gareus 2014-03-18 22:51:44 +01:00
parent 0e41d00811
commit 2952ac05e6
3 changed files with 3 additions and 2 deletions

View file

@ -261,7 +261,7 @@ intptr_t Session::vst_callback (
case audioMasterProcessEvents:
SHOW_CALLBACK ("amc: audioMasterProcessEvents\n");
// VstEvents* in <ptr>
if (plug->midi_buffer()) {
if (plug && plug->midi_buffer()) {
VstEvents* v = (VstEvents*)ptr;
for (int n = 0 ; n < v->numEvents; ++n) {
VstMidiEvent *vme = (VstMidiEvent*) (v->events[n]->dump);