fix segfault in libardour unit-tests (possible crash in mackie sf)

This commit is contained in:
Robin Gareus 2016-02-20 20:24:03 +01:00
parent ff427be0fa
commit f519edbe8e

View File

@ -384,7 +384,9 @@ Surface::setup_master ()
}
if (!m) {
_master_fader->set_control (boost::shared_ptr<AutomationControl>());
if (_master_fader) {
_master_fader->set_control (boost::shared_ptr<AutomationControl>());
}
master_connection.disconnect ();
return;
}