glmixerbin: fix minor leak

Don't leak removed list node.
This commit is contained in:
Tim-Philipp Müller 2015-11-06 12:30:12 +00:00
parent 7fedb34bea
commit 212ed5523b

View file

@ -458,7 +458,7 @@ gst_gl_mixer_bin_release_pad (GstElement * element, GstPad * pad)
struct input_chain *chain = l->data;
if (GST_PAD (chain->ghost_pad) == pad) {
self->priv->input_chains =
g_list_remove_link (self->priv->input_chains, l);
g_list_delete_link (self->priv->input_chains, l);
GST_OBJECT_UNLOCK (element);
_free_input_chain (chain);