From b9e0be2d2d528cd0a54f8fab5b650c109f815fbc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 27 Sep 2023 06:24:06 -0400 Subject: [PATCH] volumemonitor: Stop using g_type_class_ref/unref These are just wrappers for g_type_class_get/nothing now. --- gio/gunionvolumemonitor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gio/gunionvolumemonitor.c b/gio/gunionvolumemonitor.c index 10c2e7431..2bc0e5cb8 100644 --- a/gio/gunionvolumemonitor.c +++ b/gio/gunionvolumemonitor.c @@ -445,7 +445,7 @@ get_native_class (void) g_once (&once_init, (GThreadFunc)get_default_native_class, &type_class); if (type_class == NULL && once_init.retval != GUINT_TO_POINTER(G_TYPE_INVALID)) - type_class = g_type_class_ref ((GType)once_init.retval); + type_class = g_type_class_get ((GType)once_init.retval); return (GNativeVolumeMonitorClass *)type_class; } @@ -472,7 +472,6 @@ populate_union_monitor (GUnionVolumeMonitor *union_monitor) monitor = g_object_new (G_TYPE_FROM_CLASS (native_class), NULL); g_union_volume_monitor_add_monitor (union_monitor, monitor); g_object_unref (monitor); - g_type_class_unref (native_class); } ep = g_io_extension_point_lookup (G_VOLUME_MONITOR_EXTENSION_POINT_NAME);