Nikolay Sivov : scrrun: Use heap helpers for dictionary.
Module: wine Branch: master Commit: 5908cda9a514f865fff62a351d6337934b0b52f4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5908cda9a514f865fff62a351d... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sat Nov 10 09:47:17 2012 -0500 scrrun: Use heap helpers for dictionary. --- dlls/scrrun/dictionary.c | 6 ++---- 1 files 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;
participants (1)
-
Alexandre Julliard