diff options
author | Max Kellermann <max@duempel.org> | 2014-01-14 15:50:28 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-14 22:38:30 +0100 |
commit | 77041e2cd280975da79149ba48779e208630760f (patch) | |
tree | 58d6fe4ca2dc3d3360ab589a0dcd65e45b9bec5a /src | |
parent | 14235f171b71334e1a752cdf5c7fa63695fef9bd (diff) | |
download | mpd-77041e2cd280975da79149ba48779e208630760f.tar.gz mpd-77041e2cd280975da79149ba48779e208630760f.tar.xz mpd-77041e2cd280975da79149ba48779e208630760f.zip |
input/alsa: fix memory leak
Don't duplicate the MIME type when it gets passed to a std::string.
Diffstat (limited to '')
-rw-r--r-- | src/input/AlsaInputPlugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |