Commit ae9c043d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

hhctrl.ocx: Release HHInfo on WM_CLOSE message.

parent 803cf4f4
......@@ -627,6 +627,9 @@ static LRESULT CALLBACK Help_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPA
break;
case WM_SIZE:
return Help_OnSize(hWnd);
case WM_CLOSE:
ReleaseHelpViewer((HHInfo *)GetWindowLongPtrW(hWnd, GWLP_USERDATA));
return 0;
case WM_DESTROY:
PostQuitMessage(0);
break;
......@@ -780,6 +783,9 @@ void ReleaseHelpViewer(HHInfo *info)
ReleaseWebBrowser(info);
if(info->WinType.hwndHelp)
DestroyWindow(info->WinType.hwndHelp);
hhctrl_free(info);
OleUninitialize();
}
......
......@@ -159,8 +159,6 @@ int WINAPI doWinMain(HINSTANCE hInstance, LPSTR szCmdLine)
DispatchMessageW(&msg);
}
ReleaseHelpViewer(info);
return 0;
}
......
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