Fix crash on closedown.
git-svn-id: svn://localhost/ardour2/branches/3.0@8022 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f83b9d678a
commit
69c15729f2
@ -63,7 +63,9 @@ Port::Port (std::string const & n, DataType t, Flags f)
|
||||
/** Port destructor */
|
||||
Port::~Port ()
|
||||
{
|
||||
jack_port_unregister (_engine->jack (), _jack_port);
|
||||
if (_engine->jack ()) {
|
||||
jack_port_unregister (_engine->jack (), _jack_port);
|
||||
}
|
||||
}
|
||||
|
||||
/** @return true if this port is connected to anything */
|
||||
|
Loading…
Reference in New Issue
Block a user