Refactoring how the binary output is closed

This change implements the fix suggested by @gonccalo.
This commit is contained in:
Lew Rossman
2019-03-06 11:14:03 -05:00
parent 3ebb1831d7
commit 6e13d7e3aa
3 changed files with 31 additions and 19 deletions

View File

@@ -819,13 +819,7 @@ int DLLEXPORT EN_closeQ(EN_Project p)
if (!p->Openflag) return 102;
closequal(p);
p->quality.OpenQflag = FALSE;
if (p->outfile.OutFile != NULL)
{
fclose(p->outfile.OutFile);
p->outfile.OutFile = NULL;
}
closeoutfile(p);
return 0;
}