summaryrefslogtreecommitdiffstats
path: root/gst/h264parse
diff options
context:
space:
mode:
authorJosep Torra Valles <josep@fluendo.com>2008-02-13 14:40:33 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-02-13 14:40:33 +0000
commit2e9945f3776b041033196c4a6a57044536b6c506 (patch)
tree3c68e4ee7daed73d0f0deaa5071042bb57ff028b /gst/h264parse
parent5bd87909da73f1b31e7e98823e387ecaed64ff1b (diff)
downloadgst-plugins-bad-2e9945f3776b041033196c4a6a57044536b6c506.tar.gz
gst-plugins-bad-2e9945f3776b041033196c4a6a57044536b6c506.tar.bz2
gst-plugins-bad-2e9945f3776b041033196c4a6a57044536b6c506.zip
gst/h264parse/gsth264parse.c: Fix potential buffer leak in reverse mode. Re-Fixes #516061.
Original commit message from CVS: Patch by: Josep Torra Valles <josep@fluendo.com> * gst/h264parse/gsth264parse.c: (gst_h264_parse_chain_reverse): Fix potential buffer leak in reverse mode. Re-Fixes #516061.
Diffstat (limited to 'gst/h264parse')
-rw-r--r--gst/h264parse/gsth264parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/h264parse/gsth264parse.c b/gst/h264parse/gsth264parse.c
index 12b2ba72..45d63379 100644
--- a/gst/h264parse/gsth264parse.c
+++ b/gst/h264parse/gsth264parse.c
@@ -704,6 +704,8 @@ gst_h264_parse_chain_reverse (GstH264Parse * h264parse, gboolean discont,
guint8 *data;
/* get new buffer and init the start code search to the end position */
+ if (gbuf != NULL)
+ gst_buffer_unref (gbuf);
gbuf = GST_BUFFER_CAST (h264parse->gather->data);
/* remove from the gather list, they are in reverse order */