MSIX: Fix for Heap Corruption bug in ImageResizer (#1655)

This commit is contained in:
Arjun Balgovind 2020-03-23 12:14:03 -07:00 committed by GitHub
parent 72a0341a0e
commit 82596b9c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,7 +376,7 @@ HRESULT __stdcall CContextMenuHandler::GetState(IShellItemArray* psiItemArray, B
// TODO: Instead, detect whether there's a WIC codec installed that can handle this file
AssocGetPerceivedType(pszExt, &type, &flag, NULL);
free(pszPath);
CoTaskMemFree(pszPath);
// If selected file is an image...
if (type == PERCEIVED_TYPE_IMAGE)
{