summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2007-11-13 06:41:23 +0000
committerTim Mayberry <mojofunk@gmail.com>2007-11-13 06:41:23 +0000
commitc660fd31291e5e9ff6fa7aea461b1c0f3ae4721c (patch)
tree57cefae1e9e191d5813be435801f97a96ec9a813 /gtk2_ardour
parentf9bc731186c2a55292959ce6d2ae7656906df350 (diff)
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor.cc6
1 files 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<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");
/*