shell32: Release iTypeInfo on error.
This commit is contained in:
parent
8723149037
commit
04f2e76124
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue