From 77041e2cd280975da79149ba48779e208630760f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Jan 2014 15:50:28 +0100 Subject: input/alsa: fix memory leak Don't duplicate the MIME type when it gets passed to a std::string. --- src/input/AlsaInputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/AlsaInputPlugin.cxx b/src/input/AlsaInputPlugin.cxx index a4d438f0f..29c6b2504 100644 --- a/src/input/AlsaInputPlugin.cxx +++ b/src/input/AlsaInputPlugin.cxx @@ -96,7 +96,7 @@ public: /* this mime type forces use of the PcmDecoderPlugin. Needs to be generalised when/if that decoder is updated to support other audio formats */ - base.mime = strdup("audio/x-mpd-cdda-pcm"); + base.mime = "audio/x-mpd-cdda-pcm"; base.seekable = false; base.size = -1; base.ready = true; -- cgit v1.2.3