diff options
author | Jun Xie <jun.xie@samsung.com> | 2017-11-27 21:27:23 +0800 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-12-01 10:53:55 +0100 |
commit | 352b30e18650359b57ceaa1a4d3d529f71b589d6 (patch) | |
tree | da52a799516a260b5e6012fd5ee3f118ad90ed79 | |
parent | 5dca2ab4ec6720eb5c5be6584ebde885cf374268 (diff) | |
download | gstreamer-plugins-bad-352b30e18650359b57ceaa1a4d3d529f71b589d6.tar.gz |
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
-rw-r--r-- | ext/dash/gstmpdparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 40399c993..dab6c9835 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; } |