summaryrefslogtreecommitdiffstats
path: root/ext/neon
diff options
context:
space:
mode:
Diffstat (limited to 'ext/neon')
-rw-r--r--ext/neon/gstneonhttpsrc.c2
1 files changed, 2 insertions, 0 deletions
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;
}
}