summaryrefslogtreecommitdiff
path: root/libs/pbd/stateful.cc
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2006-07-22 16:21:10 +0000
committerTaybin Rutkin <taybin@taybin.com>2006-07-22 16:21:10 +0000
commit3a5a338f80e04676a80c5148064f1e48220e494c (patch)
treed4b818462ab322427201bdd4284f6e221e51a1e0 /libs/pbd/stateful.cc
parent433d9a5fc3538aa170d3ad1cb11929c0e5e94567 (diff)
Fixed double delete in Stateful::add_instant_xml().
git-svn-id: svn://localhost/ardour2/trunk@690 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/stateful.cc')
-rw-r--r--libs/pbd/stateful.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/pbd/stateful.cc b/libs/pbd/stateful.cc
index f0f820fe9d..786410e817 100644
--- a/libs/pbd/stateful.cc
+++ b/libs/pbd/stateful.cc
@@ -82,7 +82,7 @@ Stateful::add_instant_xml (XMLNode& node, const string& dir)
}
_instant_xml->remove_nodes_and_delete (node.name());
- _instant_xml->add_child_nocopy (node);
+ _instant_xml->add_child_copy (node);
XMLTree tree;
tree.set_filename(dir+"/instant.xml");
@@ -134,4 +134,3 @@ Stateful::instant_xml (const string& str, const string& dir)
return 0;
}
-