glmixerbin: fix minor leak
authorTim-Philipp Müller <tim@centricular.com>
Fri, 6 Nov 2015 12:30:12 +0000 (12:30 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 6 Nov 2015 13:00:55 +0000 (13:00 +0000)
Don't leak removed list node.

ext/gl/gstglmixerbin.c

index c6488b5..6f83f82 100644 (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);