diff options
Diffstat (limited to 'src/DecoderInternal.cxx')
-rw-r--r-- | src/DecoderInternal.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/DecoderInternal.cxx b/src/DecoderInternal.cxx index e390fdfd7..6c703e227 100644 --- a/src/DecoderInternal.cxx +++ b/src/DecoderInternal.cxx @@ -23,7 +23,7 @@ #include "MusicPipe.hxx" #include "MusicBuffer.hxx" #include "MusicChunk.hxx" -#include "tag.h" +#include "Tag.hxx" #include <assert.h> @@ -32,14 +32,9 @@ decoder::~decoder() /* caller must flush the chunk */ assert(chunk == nullptr); - if (song_tag != nullptr) - tag_free(song_tag); - - if (stream_tag != nullptr) - tag_free(stream_tag); - - if (decoder_tag != nullptr) - tag_free(decoder_tag); + delete song_tag; + delete stream_tag; + delete decoder_tag; } /** |