decoder/List: add RAII class
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user