curlhttpsrc: Don't leak structure

CID #1415716
This commit is contained in:
Edward Hervey 2017-11-22 16:53:17 +01:00 committed by Edward Hervey
parent 56fc5bef18
commit 8d99867c13

View file

@ -1179,8 +1179,7 @@ gst_curl_http_src_handle_response (GstCurlHttpSrc * src)
src->http_headers = gst_structure_new (HTTP_HEADERS_NAME,
URI_NAME, G_TYPE_STRING, src->uri,
REQUEST_HEADERS_NAME, GST_TYPE_STRUCTURE, src->request_headers,
RESPONSE_HEADERS_NAME, GST_TYPE_STRUCTURE,
gst_structure_new_empty (RESPONSE_HEADERS_NAME), NULL);
RESPONSE_HEADERS_NAME, GST_TYPE_STRUCTURE, empty_headers, NULL);
gst_structure_free (empty_headers);
}