Alexander Morozov : shell32: Release iTypeInfo on error.
Alexandre Julliard
julliard at winehq.org
Thu Feb 3 12:00:23 CST 2011
Module: wine
Branch: master
Commit: 04f2e7612404ad988136a3fe55e018150e5c5e9a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=04f2e7612404ad988136a3fe55e018150e5c5e9a
Author: Alexander Morozov <amorozov at etersoft.ru>
Date: Wed Feb 2 20:14:40 2011 +0300
shell32: Release iTypeInfo on error.
---
dlls/shell32/shelldispatch.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/shell32/shelldispatch.c b/dlls/shell32/shelldispatch.c
index 67501ae..4458252 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;
}
More information about the wine-cvs
mailing list