summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-01-20 11:48:59 +0100
committerRobin Gareus <robin@gareus.org>2017-01-20 13:53:37 +0100
commit1d2a76f23984205f3717980ed3b8134f0be17bd7 (patch)
tree7218d09bcfdff0cab2aa3dce25d6bcf6a99ffa1b /gtk2_ardour/editor.cc
parenta8afe7faab10609ab67d7cd9d11059ea48f3b3bd (diff)
Free some one time alloc of the UI (cleaner valgrind output)
No incremental leaks here.. * downcase (const char*) uses strdup, caller needs to free * free allocated cursors when the editor is destroyed * drop static editor lua-instance & bindings * delete allocated gtk image/icons
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 880963956f..0809ab61cb 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -890,10 +890,21 @@ Editor::~Editor()
delete _locations;
delete _playlist_selector;
delete _time_info_box;
+ delete selection;
+ delete cut_buffer;
+ delete _cursors;
+
+ LuaInstance::destroy_instance ();
for (list<XMLNode *>::iterator i = selection_op_history.begin(); i != selection_op_history.end(); ++i) {
delete *i;
}
+ for (std::map<ARDOUR::FadeShape, Gtk::Image*>::const_iterator i = _xfade_in_images.begin(); i != _xfade_in_images.end (); ++i) {
+ delete i->second;
+ }
+ for (std::map<ARDOUR::FadeShape, Gtk::Image*>::const_iterator i = _xfade_out_images.begin(); i != _xfade_out_images.end (); ++i) {
+ delete i->second;
+ }
}
XMLNode*