diff --git a/subprojects/gst-plugins-base/gst/playback/gstparsebin.c b/subprojects/gst-plugins-base/gst/playback/gstparsebin.c index 609a9fe96f..2db792b581 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstparsebin.c +++ b/subprojects/gst-plugins-base/gst/playback/gstparsebin.c @@ -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);