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
This commit is contained in:
Tim Mayberry 2007-11-13 06:41:23 +00:00
parent f9bc731186
commit c660fd3129

View file

@ -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<Box*>(&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");
/*