diff --git a/dlls/atl/atl_main.c b/dlls/atl/atl_main.c index eee6fee8ff5..415fbc3513d 100644 --- a/dlls/atl/atl_main.c +++ b/dlls/atl/atl_main.c @@ -132,7 +132,7 @@ HRESULT WINAPI AtlModuleLoadTypeLib(_ATL_MODULEW *pM, LPCOLESTR lpszIndex, return S_OK; } -HRESULT WINAPI AtlModuleTerm(_ATL_MODULEW* pM) +HRESULT WINAPI AtlModuleTerm(_ATL_MODULE *pM) { _ATL_TERMFUNC_ELEM *iter = pM->m_pTermFuncs, *tmp; @@ -145,8 +145,6 @@ HRESULT WINAPI AtlModuleTerm(_ATL_MODULEW* pM) HeapFree(GetProcessHeap(), 0, tmp); } - HeapFree(GetProcessHeap(), 0, pM); - return S_OK; }