aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/dump_playlist.cxx5
-rw-r--r--test/dump_text_file.cxx2
-rw-r--r--test/read_tags.cxx2
-rw-r--r--test/run_decoder.cxx2
-rw-r--r--test/run_input.cxx2
5 files changed, 6 insertions, 7 deletions
diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx
index 5f7fad993..5928c8eb4 100644
--- a/test/dump_playlist.cxx
+++ b/test/dump_playlist.cxx
@@ -105,7 +105,7 @@ int main(int argc, char **argv)
playlist = playlist_list_open_stream(*is, uri);
if (playlist == NULL) {
- is->Close();
+ delete is;
fprintf(stderr, "Failed to open playlist\n");
return 2;
}
@@ -139,8 +139,7 @@ int main(int argc, char **argv)
/* deinitialize everything */
delete playlist;
- if (is != NULL)
- is->Close();
+ delete is;
decoder_plugin_deinit_all();
playlist_list_global_finish();
diff --git a/test/dump_text_file.cxx b/test/dump_text_file.cxx
index a2fc10b3f..79b402b5a 100644
--- a/test/dump_text_file.cxx
+++ b/test/dump_text_file.cxx
@@ -112,7 +112,7 @@ int main(int argc, char **argv)
InputStream *is = InputStream::OpenReady(argv[1], mutex, cond, error);
if (is != NULL) {
ret = dump_input_stream(*is);
- is->Close();
+ delete is;
} else {
if (error.IsDefined())
LogError(error);
diff --git a/test/read_tags.cxx b/test/read_tags.cxx
index c525c8064..f11b04f7a 100644
--- a/test/read_tags.cxx
+++ b/test/read_tags.cxx
@@ -127,7 +127,7 @@ int main(int argc, char **argv)
}
success = plugin->ScanStream(*is, print_handler, nullptr);
- is->Close();
+ delete is;
}
decoder_plugin_deinit_all();
diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx
index 58731d5a5..c6f25b3fc 100644
--- a/test/run_decoder.cxx
+++ b/test/run_decoder.cxx
@@ -230,7 +230,7 @@ int main(int argc, char **argv)
decoder.plugin->StreamDecode(decoder, *is);
- is->Close();
+ delete is;
} else {
fprintf(stderr, "Decoder plugin is not usable\n");
return EXIT_FAILURE;
diff --git a/test/run_input.cxx b/test/run_input.cxx
index 4a35e1479..130d0f031 100644
--- a/test/run_input.cxx
+++ b/test/run_input.cxx
@@ -132,7 +132,7 @@ int main(int argc, char **argv)
is = InputStream::OpenReady(argv[1], mutex, cond, error);
if (is != NULL) {
ret = dump_input_stream(is);
- is->Close();
+ delete is;
} else {
if (error.IsDefined())
LogError(error);