diff options
Diffstat (limited to 'gtk2_ardour/control_point.cc')
-rw-r--r-- | gtk2_ardour/control_point.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/control_point.cc b/gtk2_ardour/control_point.cc index bc7301dc1c..d869e094aa 100644 --- a/gtk2_ardour/control_point.cc +++ b/gtk2_ardour/control_point.cc @@ -30,6 +30,8 @@ using namespace ARDOUR; using namespace PBD; using namespace Gnome; // for Canvas +PBD::Signal1<void, ControlPoint *> ControlPoint::CatchDeletion; + ControlPoint::ControlPoint (AutomationLine& al) : _line (al) { @@ -82,6 +84,8 @@ ControlPoint::ControlPoint (const ControlPoint& other, bool /*dummy_arg_to_force ControlPoint::~ControlPoint () { + CatchDeletion (this); /* EMIT SIGNAL */ + delete _item; } |