adaptivedemux2: Fix memory leaks and use-after-free
authorJan Schmidt <jan@centricular.com>
Thu, 23 Jun 2022 16:54:22 +0000 (02:54 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 29 Jun 2022 14:33:30 +0000 (14:33 +0000)
commit63d3ba4dfbd962966cffea93808d46c35c1a61b1
treec167c9b12668b34d02bc5d4bce2eb3fa7f4567f8
parent4b7622b377f4843ead2cc7012db112e0289aac6e
adaptivedemux2: Fix memory leaks and use-after-free

Fix various small memory leaks, and an invalid
access to GstEvent after giving away the ref
via gst_pad_push_event()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2676>
subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c
subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemuxutils.c