tests: pad: fix buffer leak in new blocking_with_probe_type_idle test
authorTim-Philipp Müller <tim@centricular.com>
Sat, 18 Apr 2015 10:25:16 +0000 (11:25 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 18 Apr 2015 11:01:54 +0000 (12:01 +0100)
tests/check/gst/gstpad.c

index 6c62acf..1d86537 100644 (file)
@@ -1153,6 +1153,7 @@ idletest_sink_pad_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
 {
   if (idle_probe_running)
     fail ("Should not be reached");
+  gst_buffer_unref (buf);
   return GST_FLOW_OK;
 }