input/alsa: fix memory leak

Don't duplicate the MIME type when it gets passed to a std::string.
This commit is contained in:
Max Kellermann 2014-01-14 15:50:28 +01:00
parent 14235f171b
commit 77041e2cd2
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public:
/* this mime type forces use of the PcmDecoderPlugin. /* this mime type forces use of the PcmDecoderPlugin.
Needs to be generalised when/if that decoder is Needs to be generalised when/if that decoder is
updated to support other audio formats */ 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.seekable = false;
base.size = -1; base.size = -1;
base.ready = true; base.ready = true;