From 25c208d81d341dd940b5b672af2442c0819e6bb6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Oct 2013 21:18:55 +0200 Subject: 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. --- src/input/MmsInputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input/MmsInputPlugin.cxx') diff --git a/src/input/MmsInputPlugin.cxx b/src/input/MmsInputPlugin.cxx index 15c6ac377..069857fba 100644 --- a/src/input/MmsInputPlugin.cxx +++ b/src/input/MmsInputPlugin.cxx @@ -45,7 +45,7 @@ struct MmsInputStream { mms(_mms), eof(false) { /* XX is this correct? at least this selects the ffmpeg decoder, which seems to work fine*/ - base.mime = g_strdup("audio/x-ms-wma"); + base.mime = "audio/x-ms-wma"; base.ready = true; } -- cgit v1.2.3