mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
souphttpclientsink: Set sent_buffers and streamheader_buffers to NULL after freeing
Otherwise we might use an already freed list later and crash or worse.
This commit is contained in:
parent
0686174f19
commit
e2b2185029
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue