From 7bdcc127e3e42bd76b997b56ecd938b1127d790b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 28 Oct 2011 17:04:09 +0000 Subject: Use shared_ptr for Port in the AudioEngine; improves thread-safety of the audio engine's port list as a writer cannot destroy a port in one thread while the port list is being iterated in another. git-svn-id: svn://localhost/ardour2/branches/3.0@10327 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_matrix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk2_ardour/port_matrix.cc') diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index d7e2cfd7fa..9336d520e8 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -700,7 +700,7 @@ PortMatrix::remove_channel (ARDOUR::BundleChannel b) boost::shared_ptr io = io_from_bundle (b.bundle); if (io) { - Port* p = io->nth (b.channel); + boost::shared_ptr p = io->nth (b.channel); if (p) { int const r = io->remove_port (p, this); if (r == -1) { -- cgit v1.2.3