tests: baseparse: fix buffer leak in unit test
authorTim-Philipp Müller <tim@centricular.com>
Thu, 30 Jul 2015 11:17:16 +0000 (12:17 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 30 Jul 2015 11:17:44 +0000 (12:17 +0100)
Fixes make check-valgrind

tests/check/libs/baseparse.c

index a5b891000ff280a5a5cb6d5a8e01fa3414adbc1e..8113e30d7bd482aabe1b7b79ba30a8f7a8201481 100644 (file)
@@ -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;