From 82e75ce3e29f32041b91200798ac1cc2a0394b09 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Thu, 23 May 2019 19:05:57 +0300 Subject: [PATCH] Utf8ToWideCharParser: Fix memory leak in case of error (#836) --- src/host/utf8ToWideCharParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/host/utf8ToWideCharParser.cpp b/src/host/utf8ToWideCharParser.cpp index 3518300afa..7244bdd1ef 100644 --- a/src/host/utf8ToWideCharParser.cpp +++ b/src/host/utf8ToWideCharParser.cpp @@ -505,5 +505,5 @@ void Utf8ToWideCharParser::_Reset() { _currentState = _State::Ready; _bytesStored = 0; - _convertedWideChars.release(); + _convertedWideChars.reset(nullptr); }