From 6b7fd786aa562f2cb67c631717543be4e9f43a01 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 13 Jan 2014 11:08:51 +0100 Subject: ProcessorWindowProxy::processor_going_away takes care of deletion --- gtk2_ardour/return_ui.cc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'gtk2_ardour/return_ui.cc') diff --git a/gtk2_ardour/return_ui.cc b/gtk2_ardour/return_ui.cc index 775f283947..9e86abd171 100644 --- a/gtk2_ardour/return_ui.cc +++ b/gtk2_ardour/return_ui.cc @@ -110,19 +110,9 @@ ReturnUIWindow::ReturnUIWindow (boost::shared_ptr r, ARDOUR::Session* s) set_name ("ReturnUIWindow"); - r->DropReferences.connect (going_away_connection, invalidator (*this), boost::bind (&ReturnUIWindow::return_going_away, this), gui_context()); } ReturnUIWindow::~ReturnUIWindow () { delete ui; } - -void -ReturnUIWindow::return_going_away () -{ - ENSURE_GUI_THREAD (*this, &ReturnUIWindow::return_going_away) - going_away_connection.disconnect (); - delete_when_idle (this); -} - -- cgit v1.2.3