parsebin: Don't leak parsepad list on shutdown

Free it as it is down in other cases

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3578>
This commit is contained in:
Edward Hervey 2022-11-21 15:10:35 +01:00 committed by GStreamer Marge Bot
parent d729dbb717
commit 0000476b5a

View file

@ -3573,6 +3573,7 @@ retry:
/* Don't expose if we're currently shutting down */
DYN_LOCK (parsebin);
if (G_UNLIKELY (parsebin->shutdown)) {
g_list_free_full (endpads, (GDestroyNotify) gst_object_unref);
GST_WARNING_OBJECT (parsebin,
"Currently, shutting down, aborting exposing");
DYN_UNLOCK (parsebin);