diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/neon/gstneonhttpsrc.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2007-06-01 Tim-Philipp Müller <tim at centricular dot net> + + * ext/neon/gstneonhttpsrc.c: (gst_neonhttp_src_create): + Don't leak buffer when returning an error. + 2007-06-01 Wim Taymans <wim@fluendo.com> Patch by René Stadler <mail at renestadler dot de>: diff --git a/ext/neon/gstneonhttpsrc.c b/ext/neon/gstneonhttpsrc.c index 69993f88..abcbd0f2 100644 --- a/ext/neon/gstneonhttpsrc.c +++ b/ext/neon/gstneonhttpsrc.c @@ -473,6 +473,8 @@ read_error: GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL), ("Could not read any bytes (%i, %s)", read, ne_get_error (src->session))); + gst_buffer_unref (*outbuf); + *outbuf = NULL; return GST_FLOW_ERROR; } } |