From fdf63ace6a655f772a46e73719de14f9dd6fb940 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 8 Aug 2016 08:26:58 -0400 Subject: [PATCH] add explanatory comment --- libs/ardour/port_manager.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc index ec8e3024ea..10c19a9c67 100644 --- a/libs/ardour/port_manager.cc +++ b/libs/ardour/port_manager.cc @@ -353,6 +353,12 @@ PortManager::register_output_port (DataType type, const string& portname, bool a int PortManager::unregister_port (boost::shared_ptr port) { + /* This is a little subtle. We do not call the backend's port + * unregistration code from here. That is left for the Port + * destructor. We are trying to drop references to the Port object + * here, so that its destructor will run and it will unregister itself. + */ + /* caller must hold process lock */ {