summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
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;
}