Call CHM_CloseCHM to avoid a memory leak.

This commit is contained in:
James Hawkins 2005-09-07 09:24:27 +00:00 committed by Alexandre Julliard
parent fec220d321
commit fa1dca30a1
1 changed files with 6 additions and 1 deletions

View File

@ -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)