summaryrefslogtreecommitdiff
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-12-20 15:10:59 +0100
committerMax Kellermann <max@musicpd.org>2017-12-20 15:10:59 +0100
commit43d2fd73abfabd4e6d2476ef2354d4978a5d9332 (patch)
tree6cd42af138c743dde17af031afcaef9043c231c7 /src/decoder
parent71f1ec0bc865378133ba8348e8294ccf1b311880 (diff)
lib/xiph/VorbisComments: return std::unique_ptr<Tag>
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/plugins/VorbisDecoderPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder/plugins/VorbisDecoderPlugin.cxx b/src/decoder/plugins/VorbisDecoderPlugin.cxx
index c99427fd9..1540c8b05 100644
--- a/src/decoder/plugins/VorbisDecoderPlugin.cxx
+++ b/src/decoder/plugins/VorbisDecoderPlugin.cxx
@@ -152,12 +152,11 @@ static void
vorbis_send_comments(DecoderClient &client, InputStream &is,
char **comments)
{
- Tag *tag = vorbis_comments_to_tag(comments);
+ auto tag = vorbis_comments_to_tag(comments);
if (!tag)
return;
client.SubmitTag(is, std::move(*tag));
- delete tag;
}
void