From 068385e83fa9d20bc59d90a7d2e9db7bcf34dce2 Mon Sep 17 00:00:00 2001 From: Eli Mallon Date: Wed, 23 Apr 2025 12:06:48 -0700 Subject: [PATCH] qtdemux: unref simple caps after use Otherwise we leak a GSTCaps object every time we use qtdemux on a file with Opus audio Part-of: --- subprojects/gst-plugins-good/gst/isomp4/qtdemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c index 7f5d440297..ed2f844519 100644 --- a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c +++ b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c @@ -15073,6 +15073,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak, guint32 * mvhd_matrix) goto corrupt_file; } + gst_caps_unref (entry->caps); entry->caps = gst_codec_utils_opus_create_caps (rate, n_channels, channel_mapping_family, stream_count, coupled_count, channel_mapping);