From f31e91b7a1adea9cf951591a34eadedb3681e16a Mon Sep 17 00:00:00 2001 From: Jun Xie Date: Mon, 27 Nov 2017 21:27:23 +0800 Subject: [PATCH] dashdemux: fix memory leak GPtrArray in GstActiveStream is leaked in some cases. gst_mpdparser_free_active_stream shall be invoked to free GstActiveStream https://bugzilla.gnome.org/show_bug.cgi?id=790899 --- ext/dash/gstmpdparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 122add41af..1176a75e06 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -4746,14 +4746,14 @@ gst_mpd_client_setup_streaming (GstMpdClient * client, if (!representation) { GST_WARNING ("No valid representation in the MPD file, aborting..."); - g_slice_free (GstActiveStream, stream); + gst_mpdparser_free_active_stream (stream); return FALSE; } stream->mimeType = gst_mpdparser_representation_get_mimetype (adapt_set, representation); if (stream->mimeType == GST_STREAM_UNKNOWN) { GST_WARNING ("Unknown mime type in the representation, aborting..."); - g_slice_free (GstActiveStream, stream); + gst_mpdparser_free_active_stream (stream); return FALSE; }