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.
This commit is contained in:
Tim-Philipp Müller 2007-06-01 11:59:52 +00:00
parent c10bf9272b
commit 54cadb7e0f
2 changed files with 7 additions and 0 deletions

View file

@ -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>:

View file

@ -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;
}
}