tests: vaapi: fix memleak in vaapioverlay test
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Thu, 26 May 2022 16:06:43 +0000 (12:06 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 27 May 2022 10:25:20 +0000 (10:25 +0000)
Need to unmap the frame to ensure vaapioverlay can destruct/dispose.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2503>

subprojects/gstreamer-vaapi/tests/check/elements/vaapioverlay.c

index b218759..99f0de8 100644 (file)
@@ -191,6 +191,7 @@ GST_START_TEST (test_overlay_position)
       }
     }
   }
+  gst_video_frame_unmap (&frame);
 
   /* cleanup */
   gst_buffer_replace (&handoff_buffer, NULL);