mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
fix crash when deleting a processor with a controllable (#5284)
git-svn-id: svn://localhost/ardour2/branches/3.0@13943 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
76f74b9c88
commit
1f9b0a86bd
1 changed files with 5 additions and 1 deletions
|
|
@ -122,7 +122,11 @@ MIDIControllable::set_controllable (Controllable* c)
|
|||
|
||||
controllable = c;
|
||||
|
||||
last_controllable_value = controllable->get_value();
|
||||
if (controllable) {
|
||||
last_controllable_value = controllable->get_value();
|
||||
} else {
|
||||
last_controllable_value = 0.0f; // is there a better value?
|
||||
}
|
||||
|
||||
if (controllable) {
|
||||
controllable->Destroyed.connect (controllable_death_connection, MISSING_INVALIDATOR,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue