Utf8ToWideCharParser: Fix memory leak in case of error (#836)

This commit is contained in:
Maks Naumov 2019-05-23 19:05:57 +03:00 committed by Mike Griese
parent 5ec7c0325e
commit 82e75ce3e2

View File

@ -505,5 +505,5 @@ void Utf8ToWideCharParser::_Reset()
{
_currentState = _State::Ready;
_bytesStored = 0;
_convertedWideChars.release();
_convertedWideChars.reset(nullptr);
}