summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/pannable.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-10 18:13:15 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-10 18:13:15 +0000
commit01471c8879869dc87a6a17d88c945728a3193325 (patch)
treefac9334ab21f112337d22f457a22547b46f00cd2 /libs/ardour/ardour/pannable.h
parented48b97900e41c68918d613e5deac3f57f0213df (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/ardour/pannable.h')
-rw-r--r--libs/ardour/ardour/pannable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/ardour/pannable.h b/libs/ardour/ardour/pannable.h
index f7934e974d..c30bd0a068 100644
--- a/libs/ardour/ardour/pannable.h
+++ b/libs/ardour/ardour/pannable.h
@@ -48,7 +48,7 @@ class Pannable : public PBD::Stateful, public Automatable, public SessionHandleR
boost::shared_ptr<AutomationControl> pan_frontback_control;
boost::shared_ptr<AutomationControl> pan_lfe_control;
- boost::shared_ptr<Panner> panner() const { return _panner; }
+ boost::shared_ptr<Panner> panner() const { return _panner.lock(); }
void set_panner(boost::shared_ptr<Panner>);
Session& session() { return _session; }
@@ -83,7 +83,7 @@ class Pannable : public PBD::Stateful, public Automatable, public SessionHandleR
bool has_state() const { return _has_state; }
protected:
- boost::shared_ptr<Panner> _panner;
+ boost::weak_ptr<Panner> _panner;
AutoState _auto_state;
AutoStyle _auto_style;
gint _touching;