diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-10 18:13:15 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-10 18:13:15 +0000 |
commit | 01471c8879869dc87a6a17d88c945728a3193325 (patch) | |
tree | fac9334ab21f112337d22f457a22547b46f00cd2 /libs/ardour/panner_shell.cc | |
parent | ed48b97900e41c68918d613e5deac3f57f0213df (diff) |
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
Diffstat (limited to 'libs/ardour/panner_shell.cc')
-rw-r--r-- | libs/ardour/panner_shell.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/panner_shell.cc b/libs/ardour/panner_shell.cc index ffe8e66ceb..ecf7adf990 100644 --- a/libs/ardour/panner_shell.cc +++ b/libs/ardour/panner_shell.cc @@ -33,6 +33,7 @@ #include <glibmm.h> #include "pbd/cartesian.h" +#include "pbd/boost_debug.h" #include "pbd/convert.h" #include "pbd/error.h" #include "pbd/failed_constructor.h" @@ -45,6 +46,7 @@ #include "ardour/audio_buffer.h" #include "ardour/automatable.h" #include "ardour/buffer_set.h" +#include "ardour/debug.h" #include "ardour/pannable.h" #include "ardour/panner.h" #include "ardour/panner_manager.h" @@ -70,6 +72,7 @@ PannerShell::PannerShell (string name, Session& s, boost::shared_ptr<Pannable> p PannerShell::~PannerShell () { + DEBUG_TRACE(DEBUG::Destruction, string_compose ("panner shell for %1 destructor, pannable is %2\n", _name, _pannable)); } void @@ -101,7 +104,9 @@ PannerShell::configure_io (ChanCount in, ChanCount out) abort (); } - _panner.reset (pi->descriptor.factory (_pannable, _session.get_speakers())); + Panner* p = pi->descriptor.factory (_pannable, _session.get_speakers()); + boost_debug_shared_ptr_mark_interesting (p, "Panner"); + _panner.reset (p); _panner->configure_io (in, out); Changed (); /* EMIT SIGNAL */ |