Fixed minor MakeNSIS leaks (Bug #3474662)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6309 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2013-03-19 02:11:37 +00:00
parent a2fe9bec1b
commit d3d637fab9
5 changed files with 21 additions and 11 deletions

View file

@ -514,10 +514,9 @@ extern unzFile ZEXPORT unzOpen (path)
extern int ZEXPORT unzClose (file)
unzFile file;
{
unz_s* s;
if (file==NULL)
unz_s* s = (unz_s*) file;
if (!s)
return UNZ_PARAMERROR;
s=(unz_s*)file;
if (s->pfile_in_zip_read!=NULL)
unzCloseCurrentFile(file);