From 3ead1ad3dd29d325743946e6ece0d5e3a50609e5 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 5 Jan 2026 07:16:36 +0100 Subject: chore: {example, test} cleanup code. Signed-off-by: Amlal El Mahrouss --- example/simple_example/example.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'example/simple_example/example.cpp') 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; } -- cgit v1.2.3