[libgnome-volume-control/wip/muktupavels/warnings: 1/2] mixer-card: fix cast-function-type warning



commit 5e06d7fbeb65061617a29e4759f04ccff0852818
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Sep 8 23:58:21 2018 +0300

    mixer-card: fix cast-function-type warning

 gvc-mixer-card.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gvc-mixer-card.c b/gvc-mixer-card.c
index ba31ab2..0856493 100644
--- a/gvc-mixer-card.c
+++ b/gvc-mixer-card.c
@@ -564,8 +564,7 @@ gvc_mixer_card_finalize (GObject *object)
         g_free (mixer_card->priv->human_profile);
         mixer_card->priv->human_profile = NULL;
 
-        g_list_foreach (mixer_card->priv->profiles, (GFunc) free_profile, NULL);
-        g_list_free (mixer_card->priv->profiles);
+        g_list_free_full (mixer_card->priv->profiles, (GDestroyNotify) free_profile);
         mixer_card->priv->profiles = NULL;
 
         g_list_free_full (mixer_card->priv->ports, (GDestroyNotify) free_port);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]