mirror of
https://github.com/microsoft/terminal.git
synced 2026-09-25 08:24:54 +00:00
Utf8ToWideCharParser: Fix memory leak in case of error (#836)
This commit is contained in:
@@ -505,5 +505,5 @@ void Utf8ToWideCharParser::_Reset()
|
||||
{
|
||||
_currentState = _State::Ready;
|
||||
_bytesStored = 0;
|
||||
_convertedWideChars.release();
|
||||
_convertedWideChars.reset(nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user