From c660fd31291e5e9ff6fa7aea461b1c0f3ae4721c Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 13 Nov 2007 06:41:23 +0000 Subject: [PATCH] Fix three minor memory leaks in the Editor by using Gtk::manage git-svn-id: svn://localhost/ardour2/trunk@2642 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 2876153d8f..e6cb0b8c8a 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -2735,10 +2735,10 @@ Editor::setup_toolbar () /* Pack everything in... */ - HBox* hbox = new HBox; + HBox* hbox = manage (new HBox); hbox->set_spacing(10); - tools_tearoff = new TearOff (*hbox); + tools_tearoff = manage (new TearOff (*hbox)); tools_tearoff->set_name ("MouseModeBase"); tools_tearoff->Detach.connect (bind (mem_fun(*this, &Editor::detach_tearoff), static_cast(&toolbar_hbox), @@ -2824,7 +2824,7 @@ Editor::setup_midi_toolbar () /* Pack everything in... */ - midi_tools_tearoff = new TearOff (midi_tool_button_box); + midi_tools_tearoff = manage (new TearOff (midi_tool_button_box)); midi_tools_tearoff->set_name ("MouseModeBase"); /*