From d4f75aec3e76bc59878c8fb985a938f96f715bfd Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 26 Jun 2008 15:59:44 -0500 Subject: [PATCH] hhctrl.ocx: fix a crash triggered on close --- dlls/hhctrl.ocx/help.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/hhctrl.ocx/help.c b/dlls/hhctrl.ocx/help.c index a2081ce..d196245 100644 --- a/dlls/hhctrl.ocx/help.c +++ b/dlls/hhctrl.ocx/help.c @@ -941,8 +941,10 @@ void ReleaseHelpViewer(HHInfo *info) heap_free(info->pszUrlJump2); if (info->pCHMInfo) - CloseCHM(info->pCHMInfo); - + { + CloseCHM(info->pCHMInfo); + info->pCHMInfo = NULL; + } ReleaseWebBrowser(info); ReleaseContent(info); -- 1.5.3.6