check/videorate: Avoid leaking extra buffers
authorEdward Hervey <bilboed@bilboed.com>
Mon, 28 Nov 2016 15:54:55 +0000 (16:54 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 28 Nov 2016 15:54:55 +0000 (16:54 +0100)
tests/check/elements/videorate.c

index a788196..132f9c1 100644 (file)
@@ -1270,6 +1270,7 @@ GST_START_TEST (test_rate)
   /* cleanup */
   gst_pad_remove_probe (mysinkpad, probe);
   cleanup_videorate (videorate);
+  gst_buffer_unref (buf);
 }
 
 GST_END_TEST;
@@ -1389,6 +1390,7 @@ GST_START_TEST (test_query_position)
 
   /* cleanup */
   cleanup_videorate (videorate);
+  gst_buffer_unref (buf);
 }
 
 GST_END_TEST;