dashdemux: plug mpd client leak
authorThiago Santos <thiagoss@osg.samsung.com>
Tue, 9 Feb 2016 20:24:50 +0000 (17:24 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Tue, 9 Feb 2016 20:30:14 +0000 (17:30 -0300)
On parsing error, free the mpd client object

https://bugzilla.gnome.org/show_bug.cgi?id=760120

ext/dash/gstdashdemux.c

index 6232325..10ebd7b 100644 (file)
@@ -1499,6 +1499,7 @@ gst_dash_demux_update_manifest_data (GstAdaptiveDemux * demux,
      * source element and we have received the 404 HTML response instead of
      * the manifest */
     GST_WARNING_OBJECT (demux, "Error parsing the manifest.");
+    gst_mpd_client_free (new_client);
     gst_buffer_unmap (buffer, &mapinfo);
     return GST_FLOW_ERROR;
   }