[gnome-settings-daemon/benzea/glib-dependency-fix: 1/2] media-keys: Avoid use of g_clear_slist



commit c3b841fb5c74f876e0f3b2097b5d4af466fea7ef
Author: Benjamin Berg <bberg redhat com>
Date:   Mon Jul 13 16:08:05 2020 +0200

    media-keys: Avoid use of g_clear_slist
    
    It is only available with GLib 2.64 and newer. That is quite recent, so
    simply avoid it.

 plugins/media-keys/mpris-controller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/media-keys/mpris-controller.c b/plugins/media-keys/mpris-controller.c
index 80d10051..c70f0bc1 100644
--- a/plugins/media-keys/mpris-controller.c
+++ b/plugins/media-keys/mpris-controller.c
@@ -51,7 +51,7 @@ mpris_controller_dispose (GObject *object)
       self->namespace_watcher_id = 0;
     }
 
-  g_clear_slist (&self->other_proxies, g_object_unref);
+  g_slist_free_full (g_steal_pointer (&self->other_proxies), g_object_unref);
 
   G_OBJECT_CLASS (mpris_controller_parent_class)->dispose (object);
 }


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