atl: Don't call HeapFree on module argument in AtlModuleTerm.
This commit is contained in:
parent
0a0b2ff019
commit
9f03c865b3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue