Handle all enum cases, prevent accessing unintialized ptr object
This commit is contained in:
parent
1f5649ef28
commit
c29f5471b2
@ -1890,6 +1890,8 @@ TriggerBox::set_region (uint32_t slot, boost::shared_ptr<Region> region)
|
|||||||
case DataType::MIDI:
|
case DataType::MIDI:
|
||||||
t = new MIDITrigger (slot, *this);
|
t = new MIDITrigger (slot, *this);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
t->set_region_in_worker_thread (region);
|
t->set_region_in_worker_thread (region);
|
||||||
|
Loading…
Reference in New Issue
Block a user