From 54cadb7e0f43e2f2c9dc7e52b69a743162905bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 1 Jun 2007 11:59:52 +0000 Subject: ext/neon/gstneonhttpsrc.c: Don't leak buffer when returning an error. Original commit message from CVS: * ext/neon/gstneonhttpsrc.c: (gst_neonhttp_src_create): Don't leak buffer when returning an error. --- ext/neon/gstneonhttpsrc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/neon') 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; } } -- cgit v1.2.1