diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-05-19 12:43:01 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-05-19 12:44:17 +0300 |
commit | e2b21850295c2db661bff8b42627d00984c7aab2 (patch) | |
tree | 20932ce39b662805dbf989958e21df912e47fb3a /ext/soup/gstsouphttpclientsink.c | |
parent | 0686174f19a99ee793108e0e365dc11ac3636054 (diff) |
souphttpclientsink: Set sent_buffers and streamheader_buffers to NULL after freeing
Otherwise we might use an already freed list later and crash or worse.
Diffstat (limited to 'ext/soup/gstsouphttpclientsink.c')
-rw-r--r-- | ext/soup/gstsouphttpclientsink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/soup/gstsouphttpclientsink.c b/ext/soup/gstsouphttpclientsink.c index 84be5e8c3..c81248874 100644 --- a/ext/soup/gstsouphttpclientsink.c +++ b/ext/soup/gstsouphttpclientsink.c @@ -264,8 +264,10 @@ gst_soup_http_client_sink_reset (GstSoupHttpClientSink * souphttpsink) g_list_free_full (souphttpsink->streamheader_buffers, (GDestroyNotify) gst_buffer_unref); + souphttpsink->streamheader_buffers = NULL; g_list_free_full (souphttpsink->sent_buffers, (GDestroyNotify) gst_buffer_unref); + souphttpsink->sent_buffers = NULL; } static gboolean |