Commit 77041e2c authored by Max Kellermann's avatar Max Kellermann

input/alsa: fix memory leak

Don't duplicate the MIME type when it gets passed to a std::string.
parent 14235f17
...@@ -96,7 +96,7 @@ public: ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment