decoder/List: add RAII class

This commit is contained in:
Max Kellermann
2019-02-05 22:11:45 +01:00
parent e85b24bee0
commit 7a23c123c8
7 changed files with 21 additions and 23 deletions

View File

@@ -65,7 +65,7 @@ try {
const Path path = Path::FromFS(argv[1]);
decoder_plugin_init_all(ConfigData());
const ScopeDecoderPluginsInit decoder_plugins_init({});
const auto *plugin = FindContainerDecoderPlugin(path);
if (plugin == nullptr) {
@@ -87,8 +87,6 @@ try {
bos.Flush();
decoder_plugin_deinit_all();
return EXIT_SUCCESS;
} catch (...) {
PrintException(std::current_exception());