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 a5b8910..8113e30 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;