urisourcebin: Fix crash caused by use after free
authorSeungha Yang <seungha@centricular.com>
Thu, 22 Oct 2020 10:16:42 +0000 (19:16 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 22 Oct 2020 11:42:37 +0000 (11:42 +0000)
commit5aa831223d594028cdf738cb6f406dd617926540
tree3649a54773c2c7ba133fc4d07bba21899dda2bfc
parente999318fd7f6384fed9962597b326ec77ebf452d
urisourcebin: Fix crash caused by use after free

OutputSlotInfo doesn't hold ref of queue, so gst_bin_remove()
will free the queue memory.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/888>
gst/playback/gsturisourcebin.c