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 3adb86cdb9fc45188e49eef071f0316e3e6cb656..e0cb3bbba824efc5b44913137e67920e3c54222d 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