mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
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:
parent
c10bf9272b
commit
54cadb7e0f
2 changed files with 7 additions and 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>:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue