From: Jimmy Ohn Date: Fri, 1 Dec 2023 09:46:35 +0000 (+0900) Subject: decodebin2: Properly free when shutting down in gst_decode_bin_expose X-Git-Tag: 1.22.8~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=890e5533ee915141bc4723ced73a691bcf8c8d3d;p=platform%2Fupstream%2Fgstreamer.git decodebin2: Properly free when shutting down in gst_decode_bin_expose missing_plugin_details causes memory leakages when shutting down. Part-of: --- diff --git a/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c b/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c index 7dcad54..1500795 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c +++ b/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c @@ -4675,6 +4675,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);