play: Plug media_info leak

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2061>
This commit is contained in:
Philippe Normand 2020-11-14 10:47:53 +00:00
parent e007c47c3f
commit 19d57dcfa5

View file

@ -489,6 +489,8 @@ gst_play_finalize (GObject * object)
gst_structure_free (self->config); gst_structure_free (self->config);
if (self->collection) if (self->collection)
gst_object_unref (self->collection); gst_object_unref (self->collection);
if (self->media_info)
g_object_unref (self->media_info);
g_mutex_clear (&self->lock); g_mutex_clear (&self->lock);
g_cond_clear (&self->cond); g_cond_clear (&self->cond);