[Wine-patches] [eterhack] [eter-1.0.12] shell32: Release iTypeInfo on error.

Alexander Morozov amorozov на etersoft.ru
Ср Фев 2 21:46:23 MSK 2011


----------- следующая часть -----------
From 9409927a677ca08f9b3f6465afce12ab8abf9e0d Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на 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 3497c3d..bef14d8 100644
--- a/dlls/shell32/shelldispatch.c
+++ b/dlls/shell32/shelldispatch.c
@@ -711,6 +711,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



Подробная информация о списке рассылки Wine-patches