souphttpsrc: Free extra headers when finalizing the element
It's set as property by the application, we should not just reset properties when going back to READY.
This commit is contained in:
parent
a79f92ee9d
commit
dde171ac30
@ -415,6 +415,11 @@ gst_soup_http_src_finalize (GObject * gobject)
|
||||
g_free (src->proxy_pw);
|
||||
g_strfreev (src->cookies);
|
||||
|
||||
if (src->extra_headers) {
|
||||
gst_structure_free (src->extra_headers);
|
||||
src->extra_headers = NULL;
|
||||
}
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->finalize (gobject);
|
||||
}
|
||||
|
||||
@ -1459,11 +1464,6 @@ gst_soup_http_src_stop (GstBaseSrc * bsrc)
|
||||
else
|
||||
gst_soup_http_src_session_close (src);
|
||||
|
||||
if (src->extra_headers) {
|
||||
gst_structure_free (src->extra_headers);
|
||||
src->extra_headers = NULL;
|
||||
}
|
||||
|
||||
gst_soup_http_src_reset (src);
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user