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:
parent
196f57884c
commit
4b668a08b3
1 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue