From ddaa0af4fda52b6c34764706f52b07c9e5145700 Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Sat, 17 Jun 2017 01:07:22 +0300 Subject: [PATCH] forgot to free buffer --- QuickLook.Native/QuickLook.Native32/DOpus.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/QuickLook.Native/QuickLook.Native32/DOpus.cpp b/QuickLook.Native/QuickLook.Native32/DOpus.cpp index d21ec4b..215a19c 100644 --- a/QuickLook.Native/QuickLook.Native32/DOpus.cpp +++ b/QuickLook.Native/QuickLook.Native32/DOpus.cpp @@ -103,6 +103,8 @@ void DOpus::ParseXmlBuffer(PWCHAR buffer) MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, path, -1, b, size); wcscpy_s(buffer, MAX_PATH, b); + + delete[] b; return; // we now cares only the first result } }