drop connections to incoming MIDI signals before deleting MTC Slave object
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 4 Oct 2012 20:54:08 +0000 (20:54 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 4 Oct 2012 20:54:08 +0000 (20:54 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13208 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/mtc_slave.cc

index 1176c59f256ccc3a977d7dfc186207bb737f227c..770c5046a80233f3ded3b7f350542d89a3d79a95 100644 (file)
@@ -70,6 +70,8 @@ MTC_Slave::MTC_Slave (Session& s, MIDI::Port& p)
 
 MTC_Slave::~MTC_Slave()
 {
+       port_connections.drop_connections ();
+
        if (did_reset_tc_format) {
                session.config.set_timecode_format (saved_tc_format);
        }