Properly drop Pianoroll references

This commit is contained in:
Robin Gareus 2025-03-03 18:25:21 +01:00
parent 4e58e9b7d2
commit e61670a657
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -2236,6 +2236,8 @@ Pianoroll::set_region (std::shared_ptr<ARDOUR::MidiRegion> r)
view->show_start (true);
view->show_end (true);
r->DropReferences.connect (object_connections, invalidator (*this), std::bind (&Pianoroll::unset, this), gui_context());
bool provided = false;
std::shared_ptr<Temporal::TempoMap> map;
std::shared_ptr<SMFSource> smf (std::dynamic_pointer_cast<SMFSource> (r->midi_source()));