From a0b92ddfa756ddf80e280e1af37a057dd0d41cf9 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Thu, 25 Jan 2024 10:01:21 -0500 Subject: [PATCH] destory now checks for null --- include/blt/std/allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/blt/std/allocator.h b/include/blt/std/allocator.h index 89b132b..4a2d517 100644 --- a/include/blt/std/allocator.h +++ b/include/blt/std/allocator.h @@ -233,7 +233,7 @@ namespace blt template inline void destroy(U* p) { - if (p) + if (p != nullptr) p->~U(); }