aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/DespotifyInputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-15 21:18:55 +0200
committerMax Kellermann <max@duempel.org>2013-10-15 22:49:23 +0200
commit25c208d81d341dd940b5b672af2442c0819e6bb6 (patch)
treeee4928cea75fb72c5a36d83d9a4fc4a73a4d643c /src/input/DespotifyInputPlugin.cxx
parent67f87db511a7284fbadf65bbf984480d1eaaeabc (diff)
downloadmpd-25c208d81d341dd940b5b672af2442c0819e6bb6.tar.gz
mpd-25c208d81d341dd940b5b672af2442c0819e6bb6.tar.xz
mpd-25c208d81d341dd940b5b672af2442c0819e6bb6.zip
input/*: don't allocate attribute "mime"
This was a memory leak, because "mime" was a std::string which created another copy and discarded the allocated buffer.
Diffstat (limited to '')
-rw-r--r--src/input/DespotifyInputPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/DespotifyInputPlugin.cxx b/src/input/DespotifyInputPlugin.cxx
index b0665e659..27c54160c 100644
--- a/src/input/DespotifyInputPlugin.cxx
+++ b/src/input/DespotifyInputPlugin.cxx
@@ -60,7 +60,7 @@ struct DespotifyInputStream {
memset(&pcm, 0, sizeof(pcm));
/* Despotify outputs pcm data */
- base.mime = g_strdup("audio/x-mpd-cdda-pcm");
+ base.mime = "audio/x-mpd-cdda-pcm";
base.ready = true;
}