shell32: Release iTypeInfo on error.

This commit is contained in:
Alexander Morozov 2011-02-02 20:14:40 +03:00 committed by Alexandre Julliard
parent 8723149037
commit 04f2e76124
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}