From c9417a1deae46a5f58255acfc1354581f0ed55da Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Mon, 16 May 2022 12:34:36 -0400 Subject: [PATCH] videoaggregator: unref temporary caps The "possible_caps" needs unref after finished using to avoid memory leak. Part-of: --- subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.c b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.c index 0f7d7b3..56396d9 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.c @@ -1063,6 +1063,8 @@ gst_video_aggregator_find_best_format (GstVideoAggregator * vagg, gst_caps_unref (possible_caps); continue; } + + gst_caps_unref (possible_caps); } /* If the format is supported, consider it very high weight */ -- 2.7.4