destory now checks for null

v1
Brett 2024-01-25 10:01:21 -05:00
parent 4116404763
commit a0b92ddfa7
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ namespace blt
template<class U> template<class U>
inline void destroy(U* p) inline void destroy(U* p)
{ {
if (p) if (p != nullptr)
p->~U(); p->~U();
} }