13
0

Handle all enum cases, prevent accessing unintialized ptr object

This commit is contained in:
Robin Gareus 2021-12-31 02:47:50 +01:00
parent 1f5649ef28
commit c29f5471b2
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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);