adaptivedemux2: Don't leak tags
authorEdward Hervey <edward@centricular.com>
Mon, 21 Nov 2022 16:23:44 +0000 (17:23 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 21 Nov 2022 19:02:44 +0000 (19:02 +0000)
If we got them from GstStream, we should unref them when done

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

subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c

index f5966f557709fcaaf87ecc45c0fe8cb4c26ce353..0bb75d2a3ea059c3cba4d3ad9da18c5077c06358 100644 (file)
@@ -2427,6 +2427,8 @@ can_handle_collection (GstAdaptiveDemux2Stream * stream,
       default:
         break;
     }
+    if (tags)
+      gst_tag_list_unref (tags);
   }
 
   /* Check that we either have at most 1 of each track type, or that