mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
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:
parent
f9bc731186
commit
c660fd3129
1 changed files with 3 additions and 3 deletions
|
|
@ -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");
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue