curlhttpsrc: Don't leak structure
CID #1415716
diff --git a/ext/curl/gstcurlhttpsrc.c b/ext/curl/gstcurlhttpsrc.c
index 250a46f..a47508e 100644
--- a/ext/curl/gstcurlhttpsrc.c
+++ b/ext/curl/gstcurlhttpsrc.c
@@ -1179,8 +1179,7 @@
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);
}