From b0b0536f91a1bbd23a93809c82d23e2c47e90d5f Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Wed, 11 Nov 2015 14:44:55 +0900 Subject: [PATCH] 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 --- tests/check/libs/video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/check/libs/video.c b/tests/check/libs/video.c index 0d29b8d08c..b8decf1fec 100644 --- a/tests/check/libs/video.c +++ b/tests/check/libs/video.c @@ -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); -- 2.34.1