shell32: Release iTypeInfo on error.

Alexander Morozov amorozov at etersoft.ru
Thu Feb 3 08:23:35 CST 2011


-------------- next part --------------
From cd1c13b1c1322676ec5068eeab393a15fa211708 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov at etersoft.ru>
Date: Wed, 2 Feb 2011 20:14:40 +0300
Subject: [PATCH 1/2] 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;
     }
-- 
1.7.3.5



More information about the wine-patches mailing list