diff options
author | Len Ovens <len@ovenwerks.net> | 2018-04-07 09:11:45 -0700 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2018-04-07 09:16:07 -0700 |
commit | 518f8108ac17b241f0dfaaba76931d19ecc70cd6 (patch) | |
tree | e244e4328c4edf2ab824304d1fdc4f1bb646dccb | |
parent | 0e88eff05c0f348e2d4a35e8dde81f912e306eaa (diff) |
OSC make strippable null on drop references
-rw-r--r-- | libs/surfaces/osc/osc_cue_observer.cc | 1 | ||||
-rw-r--r-- | libs/surfaces/osc/osc_route_observer.cc | 3 | ||||
-rw-r--r-- | libs/surfaces/osc/osc_select_observer.cc | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/libs/surfaces/osc/osc_cue_observer.cc b/libs/surfaces/osc/osc_cue_observer.cc index a3d3f445c4..a8fddfa2ab 100644 --- a/libs/surfaces/osc/osc_cue_observer.cc +++ b/libs/surfaces/osc/osc_cue_observer.cc @@ -64,6 +64,7 @@ OSCCueObserver::clear_observer () tick_enable = false; strip_connections.drop_connections (); + _strip = boost::shared_ptr<ARDOUR::Stripable> (); send_end (0); // all strip buttons should be off and faders 0 and etc. _osc.text_message_with_id (X_("/cue/name"), 0, " ", true, addr); diff --git a/libs/surfaces/osc/osc_route_observer.cc b/libs/surfaces/osc/osc_route_observer.cc index c22e539b3a..840142f4a6 100644 --- a/libs/surfaces/osc/osc_route_observer.cc +++ b/libs/surfaces/osc/osc_route_observer.cc @@ -97,6 +97,9 @@ OSCRouteObserver::no_strip () _init = true; strip_connections.drop_connections (); + _gain_control = boost::shared_ptr<ARDOUR::GainControl> (); + _send = boost::shared_ptr<ARDOUR::Send> (); + _strip = boost::shared_ptr<Stripable> (); /* * The strip will sit idle at this point doing nothing until * the surface has recalculated it's strip list and then calls diff --git a/libs/surfaces/osc/osc_select_observer.cc b/libs/surfaces/osc/osc_select_observer.cc index f072fad549..824881ad4f 100644 --- a/libs/surfaces/osc/osc_select_observer.cc +++ b/libs/surfaces/osc/osc_select_observer.cc @@ -101,6 +101,7 @@ OSCSelectObserver::no_strip () send_connections.drop_connections (); plugin_connections.drop_connections (); eq_connections.drop_connections (); + _strip = boost::shared_ptr<Stripable> (); /* * The strip will sit idle at this point doing nothing until * the surface has recalculated it's strip list and then calls |