ieframe: Clean up InternetExplorerManager server process.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2018-03-14 12:10:07 -05:00 committed by Alexandre Julliard
parent 3e0a6da5d3
commit b5b3146e4f
1 changed files with 4 additions and 0 deletions

View File

@ -887,7 +887,10 @@ static ULONG WINAPI InternetExplorerManager_Release(IInternetExplorerManager *if
TRACE("(%p) decreasing refcount to %u\n", iface, ref);
if (ref == 0)
{
HeapFree(GetProcessHeap(), 0, This);
released_obj();
}
return ref;
}
@ -923,6 +926,7 @@ HRESULT WINAPI InternetExplorerManager_Create(IClassFactory *iface, IUnknown *pO
hr = IInternetExplorerManager_QueryInterface(&ret->IInternetExplorerManager_iface, riid, ppv);
IInternetExplorerManager_Release(&ret->IInternetExplorerManager_iface);
InterlockedIncrement(&obj_cnt);
return hr;
}