mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
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
1 changed files with 5 additions and 5 deletions
|
@ -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…
Reference in a new issue