archive/File: eliminate Close(), make destructor virtual instead

This commit is contained in:
Max Kellermann
2017-12-22 16:30:17 +01:00
parent 5da455080b
commit 9aec2f019a
7 changed files with 4 additions and 23 deletions

View File

@@ -93,7 +93,7 @@ try {
MyArchiveVisitor visitor;
file->Visit(visitor);
file->Close();
delete file;
return result;
} catch (const std::exception &e) {