Nullable::Reset() hardening (#4232)

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
Anton Kolesnyk 2023-01-12 16:27:51 -08:00 committed by GitHub
parent d0c2234be4
commit ff53067dd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,8 +102,8 @@ public:
{
if (m_hasValue)
{
m_value.~T();
m_hasValue = false;
m_value.~T();
}
}