PBD::canonical_path will no longer throw so change test
[ardour.git] / libs / ardour / port_manager.cc
index 1eafca0574934935002c7a0710a9553ce6339406..10c19a9c67547f4cd07aecbdec4f05185a06e50e 100644 (file)
@@ -30,7 +30,7 @@
 #include "ardour/profile.h"
 #include "ardour/session.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace PBD;
@@ -353,6 +353,12 @@ PortManager::register_output_port (DataType type, const string& portname, bool a
 int
 PortManager::unregister_port (boost::shared_ptr<Port> 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 */
 
        {