tests: fix mem leak in vkimagebufferpool

caps should be freed after usage.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4904>
This commit is contained in:
Stéphane Cerveau 2023-06-19 14:27:24 +02:00 committed by GStreamer Marge Bot
parent fc0ee45fb5
commit 981db9d1d3

View file

@ -145,6 +145,7 @@ GST_START_TEST (test_vulkan_profiles)
fail_unless (caps);
fail_unless (gst_vulkan_video_profile_from_caps (&profile2, caps));
gst_caps_unref (caps);
fail_unless (profile2.profile.sType
== VK_STRUCTURE_TYPE_VIDEO_PROFILE_INFO_KHR);
fail_unless (profile2.profile.videoCodecOperation