summaryrefslogtreecommitdiffhomepage
path: root/example/simple_example/example.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'example/simple_example/example.cpp')
-rw-r--r--example/simple_example/example.cpp5
1 files changed, 4 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;
}