[libgnome-volume-control/wip/muktupavels/warnings] mixer-stream: fix cast-function-type warning
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnome-volume-control/wip/muktupavels/warnings] mixer-stream: fix cast-function-type warning
- Date: Wed, 12 Sep 2018 11:55:40 +0000 (UTC)
commit eef8c680c5d38957ca46d27bad53267d938966e7
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Sep 9 00:01:08 2018 +0300
mixer-stream: fix cast-function-type warning
gvc-mixer-stream.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gvc-mixer-stream.c b/gvc-mixer-stream.c
index 5de71d1..b136a14 100644
--- a/gvc-mixer-stream.c
+++ b/gvc-mixer-stream.c
@@ -1038,8 +1038,7 @@ gvc_mixer_stream_finalize (GObject *object)
g_free (mixer_stream->priv->human_port);
mixer_stream->priv->human_port = NULL;
- g_list_foreach (mixer_stream->priv->ports, (GFunc) free_port, NULL);
- g_list_free (mixer_stream->priv->ports);
+ g_list_free_full (mixer_stream->priv->ports, (GDestroyNotify) free_port);
mixer_stream->priv->ports = NULL;
if (mixer_stream->priv->change_volume_op) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]