diff options
| -rw-r--r-- | example/simple_example/example.cpp | 5 | ||||
| -rw-r--r-- | test/rope_test/crope.pred.test.cpp | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/example/simple_example/example.cpp b/example/simple_example/example.cpp index 3a1fd9b..5209494 100644 --- a/example/simple_example/example.cpp +++ b/example/simple_example/example.cpp @@ -12,8 +12,11 @@ int main() auto rope = ocl::tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog"); auto new_elem = new ocl::tproc::crope(", and Jumps again."); - rope.concat(new_elem); + auto res = rope.concat(new_elem); ocl::io::println((++rope)->data()); ocl::io::println(rope.data()); + + delete new_elem; + delete res; } diff --git a/test/rope_test/crope.pred.test.cpp b/test/rope_test/crope.pred.test.cpp index 0d47553..63670e0 100644 --- a/test/rope_test/crope.pred.test.cpp +++ b/test/rope_test/crope.pred.test.cpp @@ -49,4 +49,5 @@ BOOST_AUTO_TEST_CASE(rope_should_succeed_in_starts_with) ocl::io::println(ret_elem->data()); delete new_elem; + delete ret_elem; } |
