aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist/PlaylistStream.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-05-11 16:59:19 +0200
committerMax Kellermann <max@duempel.org>2014-05-11 17:12:50 +0200
commit82337dec44347017ca04fe975e85e6d9e4edb635 (patch)
tree308036d4a7abbd2bb04ed472dc1fbacdc2587871 /src/playlist/PlaylistStream.cxx
parentf1d07002521a4a98acf130127cf42aef20a5e258 (diff)
downloadmpd-82337dec44347017ca04fe975e85e6d9e4edb635.tar.gz
mpd-82337dec44347017ca04fe975e85e6d9e4edb635.tar.xz
mpd-82337dec44347017ca04fe975e85e6d9e4edb635.zip
InputStream: add virtual destructor
Replaces the method Close().
Diffstat (limited to 'src/playlist/PlaylistStream.cxx')
-rw-r--r--src/playlist/PlaylistStream.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playlist/PlaylistStream.cxx b/src/playlist/PlaylistStream.cxx
index 6222a768d..5855c598b 100644
--- a/src/playlist/PlaylistStream.cxx
+++ b/src/playlist/PlaylistStream.cxx
@@ -50,7 +50,7 @@ playlist_open_path_suffix(const char *path_fs, Mutex &mutex, Cond &cond)
if (playlist != nullptr)
playlist = new CloseSongEnumerator(playlist, is);
else
- is->Close();
+ delete is;
return playlist;
}
@@ -85,7 +85,7 @@ playlist_open_remote(const char *uri, Mutex &mutex, Cond &cond)
playlist = playlist_list_open_stream(*is, uri);
if (playlist == nullptr) {
- is->Close();
+ delete is;
return nullptr;
}