refactor MIDISceneChange color property addition by moving it into SceneChange to...
[ardour.git] / libs / ardour / internal_send.cc
index e5c7232f480f7d69db09b5ecec96637d31bbb031..33b299dfeea9b88058b90590a8471e128b9e44ed 100644 (file)
@@ -58,6 +58,7 @@ InternalSend::InternalSend (Session& s,
 
        init_gain ();
 
+       _send_from->DropReferences.connect_same_thread (source_connection, boost::bind (&InternalSend::send_from_going_away, this));
        CycleStart.connect_same_thread (*this, boost::bind (&InternalSend::cycle_start, this, _1));
 }
 
@@ -117,6 +118,12 @@ InternalSend::target_io_changed ()
        reset_panner();
 }
 
+void
+InternalSend::send_from_going_away ()
+{
+       _send_from.reset();
+}
+
 void
 InternalSend::send_to_going_away ()
 {