summaryrefslogtreecommitdiff
path: root/gtk2_ardour/template_dialog.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-08-20 22:26:54 +0200
committerRobin Gareus <robin@gareus.org>2017-08-20 22:26:54 +0200
commit0034f246cb283cea1ad100bfe383ad7801140da9 (patch)
tree01ef8df9e0e1c0ba6aab8d48f0610a5ea0a01fa1 /gtk2_ardour/template_dialog.cc
parentf15fc38bd82324e76f69a241179dd0f437fb53dd (diff)
Fix some GUI side XML node mem-leaks
Diffstat (limited to 'gtk2_ardour/template_dialog.cc')
-rw-r--r--gtk2_ardour/template_dialog.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/template_dialog.cc b/gtk2_ardour/template_dialog.cc
index 696cb29dec..27836b4a65 100644
--- a/gtk2_ardour/template_dialog.cc
+++ b/gtk2_ardour/template_dialog.cc
@@ -435,7 +435,7 @@ TemplateManager::save_template_desc ()
return;
}
- tree.root()->remove_nodes (X_("description"));
+ tree.root()->remove_nodes_and_delete (X_("description"));
XMLNode* desc = new XMLNode (X_("description"));
XMLNode* dn = new XMLNode (X_("content"), desc_txt);