Commit fa1dca30 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

Call CHM_CloseCHM to avoid a memory leak.

parent fec220d3
...@@ -600,8 +600,13 @@ static void HH_Close(HHInfo *pHHInfo) ...@@ -600,8 +600,13 @@ static void HH_Close(HHInfo *pHHInfo)
} }
HeapFree(GetProcessHeap(), 0, pHHInfo->pHHWinType); HeapFree(GetProcessHeap(), 0, pHHInfo->pHHWinType);
HeapFree(GetProcessHeap(), 0, pHHInfo->pCHMInfo);
HeapFree(GetProcessHeap(), 0, pHHInfo->szCmdLine); HeapFree(GetProcessHeap(), 0, pHHInfo->szCmdLine);
if (pHHInfo->pCHMInfo)
{
CHM_CloseCHM(pHHInfo->pCHMInfo);
HeapFree(GetProcessHeap(), 0, pHHInfo->pCHMInfo);
}
} }
static BOOL HH_OpenCHM(HHInfo *pHHInfo) static BOOL HH_OpenCHM(HHInfo *pHHInfo)
......
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