tests:video: Fix overlay rectangle and buffer leak
authorVineeth TM <vineeth.tm@samsung.com>
Wed, 11 Nov 2015 05:44:55 +0000 (14:44 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 11 Nov 2015 14:47:24 +0000 (15:47 +0100)
Created overlay rectangle is not being freed in video tests
pix2 buffer is being created and not freed

https://bugzilla.gnome.org/show_bug.cgi?id=757927

tests/check/libs/video.c

index 0d29b8d08c6c137ed4d9386643956c9726ea8983..b8decf1fecd11ce3173cfb15a00ba3ad1e584f34 100644 (file)
@@ -2666,6 +2666,8 @@ GST_START_TEST (test_overlay_composition_over_transparency)
   comp1 = gst_video_overlay_composition_new (rect1);
   fail_unless (gst_video_overlay_composition_blend (comp1, &video_frame));
   gst_video_overlay_composition_unref (comp1);
+  gst_video_overlay_rectangle_unref (rect1);
+  gst_buffer_unref (pix2);
 
   data = GST_VIDEO_FRAME_PLANE_DATA (&video_frame, 0);