[1/3] scrrun: Use heap helpers for dictionary

Nikolay Sivov nsivov at codeweavers.com
Mon Nov 12 01:38:13 CST 2012


Use heap helpers for dictionary
-------------- next part --------------
>From 60ff7893d4f72d439e11bef9600933673d0cc07b Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat, 10 Nov 2012 09:47:17 -0500
Subject: [PATCH 3/7] Use heap helpers for dictionary

---
 dlls/scrrun/dictionary.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/scrrun/dictionary.c b/dlls/scrrun/dictionary.c
index b75d23c..4fcaedd 100644
--- a/dlls/scrrun/dictionary.c
+++ b/dlls/scrrun/dictionary.c
@@ -95,9 +95,7 @@ static ULONG WINAPI dictionary_Release(IDictionary *iface)
 
     ref = InterlockedDecrement(&This->ref);
     if(ref == 0)
-    {
-        HeapFree(GetProcessHeap(), 0, This);
-    }
+        heap_free(This);
 
     return ref;
 }
@@ -333,7 +331,7 @@ HRESULT WINAPI Dictionary_CreateInstance(IClassFactory *factory,IUnknown *outer,
 
     *obj = NULL;
 
-    This = HeapAlloc(GetProcessHeap(), 0, sizeof(*This));
+    This = heap_alloc(sizeof(*This));
     if(!This) return E_OUTOFMEMORY;
 
     This->IDictionary_iface.lpVtbl = &dictionary_vtbl;
-- 
1.7.10.4




More information about the wine-patches mailing list