From 04f2e7612404ad988136a3fe55e018150e5c5e9a Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Wed, 2 Feb 2011 20:14:40 +0300 Subject: [PATCH] shell32: Release iTypeInfo on error. --- dlls/shell32/shelldispatch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/shell32/shelldispatch.c b/dlls/shell32/shelldispatch.c index 67501ae251..4458252a5a 100644 --- a/dlls/shell32/shelldispatch.c +++ b/dlls/shell32/shelldispatch.c @@ -391,6 +391,7 @@ static HRESULT Folder_Constructor(VARIANT *dir, Folder **ppsdf) ret = VariantCopy(&This->dir, dir); if (FAILED(ret)) { + ITypeInfo_Release(This->iTypeInfo); HeapFree(GetProcessHeap(), 0, This); return E_OUTOFMEMORY; } -- 2.33.8