From 9c6b0f461593d8493721e7007154cfa641260449 Mon Sep 17 00:00:00 2001 From: Jimmy Ohn Date: Fri, 1 Dec 2023 18:46:35 +0900 Subject: [PATCH] decodebin2: Properly free when shutting down in gst_decode_bin_expose missing_plugin_details causes memory leakages when shutting down. Part-of: --- subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c b/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c index 9610f8b7eb..9247625a30 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c +++ b/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c @@ -4706,6 +4706,7 @@ retry: if (G_UNLIKELY (dbin->shutdown)) { GST_WARNING_OBJECT (dbin, "Currently, shutting down, aborting exposing"); DYN_UNLOCK (dbin); + g_string_free (missing_plugin_details, TRUE); return FALSE; } DYN_UNLOCK (dbin);