Fixed double delete in Stateful::add_instant_xml().

git-svn-id: svn://localhost/ardour2/trunk@690 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Taybin Rutkin 2006-07-22 16:21:10 +00:00
parent 433d9a5fc3
commit 3a5a338f80
7 changed files with 27 additions and 45 deletions

View file

@ -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;
}