summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-02-13 10:30:09 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-02-13 10:36:29 +0100
commitdde171ac3061e16bf8e17fbf44821ee5eed0ae80 (patch)
treee2b6fc4f4eea06c57617424aaee227fcf30cf31f /ext
parenta79f92ee9d0f4867c624ed522ca1303b030b9a27 (diff)
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.
Diffstat (limited to 'ext')
-rw-r--r--ext/soup/gstsouphttpsrc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c
index 05ce0d363..9572a7b2e 100644
--- a/ext/soup/gstsouphttpsrc.c
+++ b/ext/soup/gstsouphttpsrc.c
@@ -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;
}