set chm_toc and chm_ind to NULL after closing them

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4019 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-05-10 20:30:01 +00:00
parent 196f57884c
commit 4b668a08b3

View file

@ -1055,8 +1055,16 @@ static void xhtml_do_top_file(xhtmlfile * file, paragraph * sourceform)
if(chm_toc)chm_dofooter(chm_toc);
if(chm_ind)chm_dofooter(chm_ind);
fclose(fp);
if(chm_toc)fclose(chm_toc);
if(chm_ind)fclose(chm_ind);
if(chm_toc)
{
fclose(chm_toc);
chm_toc = NULL;
}
if(chm_ind)
{
fclose(chm_ind);
chm_ind = NULL;
}
}
/* Convert a Unicode string to an ASCII one. '?' is