diff --git a/ChangeLog b/ChangeLog index 67ff96cb3f..98550e9c70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-06-01 Tim-Philipp Müller + + * ext/neon/gstneonhttpsrc.c: (gst_neonhttp_src_create): + Don't leak buffer when returning an error. + 2007-06-01 Wim Taymans Patch by René Stadler : diff --git a/ext/neon/gstneonhttpsrc.c b/ext/neon/gstneonhttpsrc.c index 69993f8874..abcbd0f205 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; } }