Commit 9f03c865 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

atl: Don't call HeapFree on module argument in AtlModuleTerm.

parent 0a0b2ff0
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment