summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2015-07-30 12:17:16 +0100
committerTim-Philipp Müller <tim@centricular.com>2015-07-30 12:17:44 +0100
commit27fff1e0d677eecc307f9a0d1f072d3cc0e5e89b (patch)
tree6f3918e9fac3256c9fc2290c997abef46b878845
parent48ab4f6fe21c74f15c915a2c1123923620fc6fd5 (diff)
tests: baseparse: fix buffer leak in unit test
Fixes make check-valgrind
-rw-r--r--tests/check/libs/baseparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/check/libs/baseparse.c b/tests/check/libs/baseparse.c
index a5b891000..8113e30d7 100644
--- a/tests/check/libs/baseparse.c
+++ b/tests/check/libs/baseparse.c
@@ -353,6 +353,7 @@ _sink_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
gst_util_uint64_scale_round (GST_SECOND, TEST_VIDEO_FPS_D,
TEST_VIDEO_FPS_N));
gst_buffer_unmap (buffer, &map);
+ gst_buffer_unref (buffer);
buffer_count++;
have_data = TRUE;