Jus use _delete_link() instead of _remove_link() + _free1()
shader->priv->vtable.DetachShader (shader->priv->program_handle,
stage_handle);
- shader->priv->stages = g_list_remove_link (shader->priv->stages, elem);
+ shader->priv->stages = g_list_delete_link (shader->priv->stages, elem);
gst_object_unref (stage);
- g_list_free_1 (elem);
}
/**
/* Free this list node and move to the next */
p = g_list_previous (l);
- parse->pending_buffers = g_list_remove_link (parse->pending_buffers, l);
- g_list_free_1 (l);
+ parse->pending_buffers = g_list_delete_link (parse->pending_buffers, l);
l = p;
}