tests:video: Fix overlay rectangle and buffer leak

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
This commit is contained in:
Vineeth TM 2015-11-11 14:44:55 +09:00 committed by Sebastian Dröge
parent 3f099e3c29
commit b0b0536f91

View 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);