summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_group.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-28 12:55:53 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-28 12:55:53 +0000
commit9afbb649b6bb39e1f04cad990b46bd6cbf004e96 (patch)
treeceb235e581b443393347af18bc1561c2d5c44679 /gtk2_ardour/port_group.h
parent2a69334d6824dce89e8543d4ce6ae5f1f0993e7f (diff)
Use weak_ptr for IOs in the bundle list to avoid holding onto them when a route is removed. Fixes #3395.
git-svn-id: svn://localhost/ardour2/branches/3.0@7702 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_group.h')
-rw-r--r--gtk2_ardour/port_group.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/port_group.h b/gtk2_ardour/port_group.h
index 3ae1df697d..f0bb1c4c58 100644
--- a/gtk2_ardour/port_group.h
+++ b/gtk2_ardour/port_group.h
@@ -75,7 +75,7 @@ public:
boost::shared_ptr<ARDOUR::Bundle> bundle;
/** IO whose ports are in the bundle, or 0. This is so that we can do things like adding
ports to the IO from matrix editor menus. */
- boost::shared_ptr<ARDOUR::IO> io;
+ boost::weak_ptr<ARDOUR::IO> io;
Gdk::Color colour;
bool has_colour;
PBD::ScopedConnection changed_connection;