From 0794329ac1c624424202104e95e49b961deb4289 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 21 Dec 2015 15:46:03 +0100 Subject: [PATCH] delete monitoring section when removed Among other things, this makes sure the detached window is removed. --- gtk2_ardour/mixer_ui.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index 554467e5eb..7621a3a9cd 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -2053,6 +2053,8 @@ Mixer_UI::monitor_section_going_away () monitor_section_detached (); out_packer.remove (_monitor_section->tearoff()); _monitor_section->set_session (0); + delete _monitor_section; + _monitor_section = 0; } }