From: U. Artie Eoff Date: Mon, 16 May 2022 16:34:36 +0000 (-0400) Subject: videoaggregator: unref temporary caps X-Git-Tag: 1.22.0~1630 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9417a1deae46a5f58255acfc1354581f0ed55da;p=platform%2Fupstream%2Fgstreamer.git videoaggregator: unref temporary caps The "possible_caps" needs unref after finished using to avoid memory leak. Part-of: --- 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 */