projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1d4e7e
)
souphttpclientsink: Fix memory leaks during failures
author
Vineeth TM
<vineeth.tm@samsung.com>
Mon, 12 Oct 2015 02:09:30 +0000
(11:09 +0900)
committer
Sebastian Dröge
<sebastian@centricular.com>
Mon, 12 Oct 2015 13:53:28 +0000
(16:53 +0300)
freeing streamheader_buffers and sent_buffers during failure cases.
https://bugzilla.gnome.org/show_bug.cgi?id=755326
ext/soup/gstsouphttpclientsink.c
patch
|
blob
|
history
diff --git
a/ext/soup/gstsouphttpclientsink.c
b/ext/soup/gstsouphttpclientsink.c
index
e31f91f
..
9f1279e
100644
(file)
--- a/
ext/soup/gstsouphttpclientsink.c
+++ b/
ext/soup/gstsouphttpclientsink.c
@@
-251,6
+251,10
@@
gst_soup_http_client_sink_reset (GstSoupHttpClientSink * souphttpsink)
souphttpsink->status_code = 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