add explict destructor for Pannable
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 7 Feb 2011 18:20:18 +0000 (18:20 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 7 Feb 2011 18:20:18 +0000 (18:20 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8749 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/ardour/pannable.h
libs/ardour/pannable.cc

index 3dc4ccb8fd42dbfd6ebbf0bc5dad1ec693f0b9b5..f7934e974db3d9cef2fa3763a368b27a07178add 100644 (file)
@@ -36,8 +36,11 @@ class Session;
 class AutomationControl;
 class Panner;
 
-struct Pannable : public PBD::Stateful, public Automatable, public SessionHandleRef {
+class Pannable : public PBD::Stateful, public Automatable, public SessionHandleRef 
+{
+  public:
         Pannable (Session& s);
+        ~Pannable ();
 
         boost::shared_ptr<AutomationControl> pan_azimuth_control;
         boost::shared_ptr<AutomationControl> pan_elevation_control;
index 1e2d5f559493f8900812d7a160c72c4a22aca232..1a56fe87cb7b421cc961068afc818e8a7996eeb2 100644 (file)
@@ -20,6 +20,7 @@
 #include "pbd/error.h"
 #include "pbd/convert.h"
 
+#include "ardour/debug.h"
 #include "ardour/automation_control.h"
 #include "ardour/automation_list.h"
 #include "ardour/pannable.h"
@@ -59,6 +60,11 @@ Pannable::Pannable (Session& s)
         pan_lfe_control->alist()->automation_state_changed.connect_same_thread (*this, boost::bind (&Pannable::control_auto_state_changed, this, _1));
 }
 
+Pannable::~Pannable ()
+{
+       DEBUG_TRACE (DEBUG::Destruction, string_compose ("pannable @ %1 destructor\n", this));
+}
+
 void
 Pannable::control_auto_state_changed (AutoState new_state)
 {