projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d677f7
)
fix test segfault
author
Robin Gareus
<robin@gareus.org>
Wed, 3 Dec 2014 15:03:57 +0000
(16:03 +0100)
committer
Robin Gareus
<robin@gareus.org>
Wed, 3 Dec 2014 15:03:57 +0000
(16:03 +0100)
whe XMLTree goes out of scope, the root-node is deleted
libs/ardour/test/test_util.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/test/test_util.cc
b/libs/ardour/test/test_util.cc
index 3c60329170416579acd097a777587eec6a7ee553..4d19385f3ce0cb12f968502138b63dc953dfa28b 100644
(file)
--- a/
libs/ardour/test/test_util.cc
+++ b/
libs/ardour/test/test_util.cc
@@
-92,7
+92,9
@@
write_ref (XMLNode* node, string ref_file)
{
XMLTree ref;
ref.set_root (node);
- return ref.write (ref_file);
+ bool rv = ref.write (ref_file);
+ ref.set_root (0);
+ return rv;
}
class TestReceiver : public Receiver