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
@ -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>
|
2007-06-01 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
Patch by René Stadler <mail at renestadler dot de>:
|
Patch by René Stadler <mail at renestadler dot de>:
|
||||||
|
@ -473,6 +473,8 @@ read_error:
|
|||||||
GST_ELEMENT_ERROR (src, RESOURCE, READ,
|
GST_ELEMENT_ERROR (src, RESOURCE, READ,
|
||||||
(NULL), ("Could not read any bytes (%i, %s)", read,
|
(NULL), ("Could not read any bytes (%i, %s)", read,
|
||||||
ne_get_error (src->session)));
|
ne_get_error (src->session)));
|
||||||
|
gst_buffer_unref (*outbuf);
|
||||||
|
*outbuf = NULL;
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user