From 06f898cc1240a29b293de0e97ad95a4fdc971254 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 30 Jul 2013 20:11:57 +0200 Subject: tag: convert to C++ --- src/DecoderInternal.cxx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/DecoderInternal.cxx') 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 @@ -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; } /** -- cgit v1.2.3