Fix reopening after closing file opened by name
This commit is contained in:
parent
c815a53d9d
commit
15ccedabfd
1 changed files with 4 additions and 2 deletions
|
@ -173,8 +173,10 @@ void QuaZip::close()
|
|||
return;
|
||||
}
|
||||
// opened by name, need to delete the internal IO device
|
||||
if (!p->zipName.isEmpty())
|
||||
delete p->ioDevice;
|
||||
if (!p->zipName.isEmpty()) {
|
||||
delete p->ioDevice;
|
||||
p->ioDevice = NULL;
|
||||
}
|
||||
if(p->zipError==UNZ_OK)
|
||||
p->mode=mdNotOpen;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue