destory now checks for null
parent
4116404763
commit
a0b92ddfa7
|
@ -233,7 +233,7 @@ namespace blt
|
|||
template<class U>
|
||||
inline void destroy(U* p)
|
||||
{
|
||||
if (p)
|
||||
if (p != nullptr)
|
||||
p->~U();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue