summaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-05 07:16:36 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-05 07:16:36 +0100
commit3ead1ad3dd29d325743946e6ece0d5e3a50609e5 (patch)
treeaf45d02d98e70bf6fd13ca4c31f97769cdf0a650 /example
parent90eb954bdad5eed76a8594c91772b3eaaf2a2f75 (diff)
chore: {example, test} cleanup code.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example')
-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;
}