souphttpclientsink: Fix memory leaks during failures
freeing streamheader_buffers and sent_buffers during failure cases. https://bugzilla.gnome.org/show_bug.cgi?id=755326
This commit is contained in:
parent
b1d4e7e222
commit
cece69003c
@ -251,6 +251,10 @@ gst_soup_http_client_sink_reset (GstSoupHttpClientSink * souphttpsink)
|
|||||||
souphttpsink->status_code = 0;
|
souphttpsink->status_code = 0;
|
||||||
souphttpsink->offset = 0;
|
souphttpsink->offset = 0;
|
||||||
|
|
||||||
|
g_list_free_full (souphttpsink->streamheader_buffers,
|
||||||
|
(GDestroyNotify) gst_buffer_unref);
|
||||||
|
g_list_free_full (souphttpsink->sent_buffers,
|
||||||
|
(GDestroyNotify) gst_buffer_unref);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user