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.
This commit is contained in:
Max Kellermann
2013-10-15 21:18:55 +02:00
parent 67f87db511
commit 25c208d81d
4 changed files with 6 additions and 6 deletions

View File

@@ -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;
}