diff options
author | Max Kellermann <max@musicpd.org> | 2017-12-22 16:30:17 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-12-22 16:30:17 +0100 |
commit | 9aec2f019aa8742d48a00b27e2e23633ba46fea8 (patch) | |
tree | d8df6add8f2c2426afb28c5a986043db195e710d /src/input/plugins/ArchiveInputPlugin.cxx | |
parent | 5da455080bbdff27bf9e8418e2de22107370225f (diff) |
archive/File: eliminate Close(), make destructor virtual instead
Diffstat (limited to 'src/input/plugins/ArchiveInputPlugin.cxx')
-rw-r--r-- | src/input/plugins/ArchiveInputPlugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/plugins/ArchiveInputPlugin.cxx b/src/input/plugins/ArchiveInputPlugin.cxx index fc1567a54..72caf7fa2 100644 --- a/src/input/plugins/ArchiveInputPlugin.cxx +++ b/src/input/plugins/ArchiveInputPlugin.cxx @@ -63,7 +63,7 @@ OpenArchiveInputStream(Path path, Mutex &mutex, Cond &cond) auto file = archive_file_open(arplug, Path::FromFS(archive)); AtScopeExit(file) { - file->Close(); + delete file; }; return InputStreamPtr(file->OpenStream(filename, mutex, cond)); |