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

This commit is contained in:
Jacek Caban 2012-12-10 12:35:33 +01:00 committed by Alexandre Julliard
parent 0a0b2ff019
commit 9f03c865b3
1 changed files with 1 additions and 3 deletions

View File

@ -132,7 +132,7 @@ HRESULT WINAPI AtlModuleLoadTypeLib(_ATL_MODULEW *pM, LPCOLESTR lpszIndex,
return S_OK; return S_OK;
} }
HRESULT WINAPI AtlModuleTerm(_ATL_MODULEW* pM) HRESULT WINAPI AtlModuleTerm(_ATL_MODULE *pM)
{ {
_ATL_TERMFUNC_ELEM *iter = pM->m_pTermFuncs, *tmp; _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, tmp);
} }
HeapFree(GetProcessHeap(), 0, pM);
return S_OK; return S_OK;
} }