13
0

fix crash when switching from regular MIDI to ipMIDI Mackie surface

This commit is contained in:
Paul Davis 2015-10-08 15:28:21 -04:00
parent d3efef7f5c
commit 0c448c387b

View File

@ -150,6 +150,8 @@ Surface::~Surface ()
delete *it;
}
port_connection.disconnect ();
delete _jog_wheel;
delete _port;
@ -159,6 +161,10 @@ Surface::~Surface ()
void
Surface::connection_handler (boost::weak_ptr<ARDOUR::Port>, std::string name1, boost::weak_ptr<ARDOUR::Port>, std::string name2, bool yn)
{
if (!_port) {
return;
}
string ni = ARDOUR::AudioEngine::instance()->make_port_name_non_relative (_port->input_name());
string no = ARDOUR::AudioEngine::instance()->make_port_name_non_relative (_port->output_name());