From 4702e9f4a3244c4cec3abefc55aec1c7d5abc8f0 Mon Sep 17 00:00:00 2001 From: Arek Sredzki Date: Wed, 19 Sep 2018 13:27:59 -0700 Subject: [PATCH] Use `deleter` in `etl::unique_ptr::reset(...)` --- include/etl/memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/etl/memory.h b/include/etl/memory.h index fca5ff44a..0be98a1b5 100644 --- a/include/etl/memory.h +++ b/include/etl/memory.h @@ -864,7 +864,7 @@ namespace etl pointer value = p; p = p_; - delete value; + deleter(value); } void swap(unique_ptr& value)