tests: fix caps leak in baseparse unit test
authorTim-Philipp Müller <tim@centricular.com>
Thu, 25 Sep 2014 15:21:51 +0000 (16:21 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 25 Sep 2014 15:21:51 +0000 (16:21 +0100)
tests/check/libs/baseparse.c

index 3adb86c..e0cb3bb 100644 (file)
@@ -181,6 +181,7 @@ send_startup_events (void)
       TEST_VIDEO_WIDTH, "height", G_TYPE_INT, TEST_VIDEO_HEIGHT, "framerate",
       GST_TYPE_FRACTION, TEST_VIDEO_FPS_N, TEST_VIDEO_FPS_D, NULL);
   fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_caps (caps)));
+  gst_caps_unref (caps);
 }
 
 static void