mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-10 18:43:54 -06:00
Utf8ToWideCharParser: Fix memory leak in case of error (#836)
This commit is contained in:
parent
5ec7c0325e
commit
82e75ce3e2
@ -505,5 +505,5 @@ void Utf8ToWideCharParser::_Reset()
|
||||
{
|
||||
_currentState = _State::Ready;
|
||||
_bytesStored = 0;
|
||||
_convertedWideChars.release();
|
||||
_convertedWideChars.reset(nullptr);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user