Call CHM_CloseCHM to avoid a memory leak.
This commit is contained in:
parent
fec220d321
commit
fa1dca30a1
|
@ -600,8 +600,13 @@ static void HH_Close(HHInfo *pHHInfo)
|
|||
}
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, pHHInfo->pHHWinType);
|
||||
HeapFree(GetProcessHeap(), 0, pHHInfo->pCHMInfo);
|
||||
HeapFree(GetProcessHeap(), 0, pHHInfo->szCmdLine);
|
||||
|
||||
if (pHHInfo->pCHMInfo)
|
||||
{
|
||||
CHM_CloseCHM(pHHInfo->pCHMInfo);
|
||||
HeapFree(GetProcessHeap(), 0, pHHInfo->pCHMInfo);
|
||||
}
|
||||
}
|
||||
|
||||
static BOOL HH_OpenCHM(HHInfo *pHHInfo)
|
||||
|
|
Loading…
Reference in New Issue