Commit d49bc71f authored by Jonathan Karlsson's avatar Jonathan Karlsson Committed by Sebastian Dröge
Browse files

curlhttpsink: free content type before assigning it

Not doing this would result in a memory leak.
parent e8ec1c01
......@@ -463,6 +463,7 @@ gst_curl_http_sink_set_mime_type (GstCurlBaseSink * bcsink, GstCaps * caps)
structure = gst_caps_get_structure (caps, 0);
mime_type = gst_structure_get_name (structure);
g_free (sink->content_type);
if (!g_strcmp0 (mime_type, "multipart/form-data") &&
gst_structure_has_field_typed (structure, "boundary", G_TYPE_STRING)) {
const gchar *boundary;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment