13
0

Fix crash on closedown.

git-svn-id: svn://localhost/ardour2/branches/3.0@8022 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-11-13 22:50:03 +00:00
parent f83b9d678a
commit 69c15729f2

View File

@ -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 */