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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user