Archive::~Archive() {
// Shutdown the file mapping
if (mapfile) {
- mapfile->unmap();
+ mapfile->close();
delete mapfile;
}
// Delete any ModuleProviders and ArchiveMember's we've allocated as a result
// Close the mapped file if it was opened
if (mFile != 0) {
- mFile->unmap();
+ mFile->close();
delete mFile;
}
}
// Close up shop
FinalFile.close();
- arch.unmap();
+ arch.close();
TmpArchive.destroyFile();
} else {
Archive::~Archive() {
// Shutdown the file mapping
if (mapfile) {
- mapfile->unmap();
+ mapfile->close();
delete mapfile;
}
// Delete any ModuleProviders and ArchiveMember's we've allocated as a result
// Close the mapped file if it was opened
if (mFile != 0) {
- mFile->unmap();
+ mFile->close();
delete mFile;
}
}
// Close up shop
FinalFile.close();
- arch.unmap();
+ arch.close();
TmpArchive.destroyFile();
} else {