From 01471c8879869dc87a6a17d88c945728a3193325 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 10 Feb 2011 18:13:15 +0000 Subject: break circular reference between panners and pannables; more destruction debug tracing; a little more boost debug stuff git-svn-id: svn://localhost/ardour2/branches/3.0@8822 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/pannable.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libs/ardour/pannable.cc') diff --git a/libs/ardour/pannable.cc b/libs/ardour/pannable.cc index 1a56fe87cb..b4744d5658 100644 --- a/libs/ardour/pannable.cc +++ b/libs/ardour/pannable.cc @@ -256,8 +256,10 @@ Pannable::set_state (const XMLNode& root, int /*version - not used*/) string Pannable::value_as_string (boost::shared_ptr ac) const { - if (_panner) { - return _panner->value_as_string (ac); + boost::shared_ptr p = panner (); + + if (p) { + return p->value_as_string (ac); } return Automatable::value_as_string (ac); -- cgit v1.2.3