curlhttpsink: free content type before assigning it

Not doing this would result in a memory leak.
This commit is contained in:
Jonathan Karlsson 2018-12-17 08:43:57 +01:00 committed by Sebastian Dröge
parent e8ec1c0143
commit d49bc71f00

View file

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