From 9f58b8ecdc9422e1287893fdb382ea568e9ea8c9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 27 Sep 2023 06:22:58 -0400 Subject: [PATCH] iomodule: Stop using g_type_class_ref/unref These are just wrappers for g_type_class_get/nothing now. --- gio/giomodule.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gio/giomodule.c b/gio/giomodule.c index 17fabe640..40982142b 100644 --- a/gio/giomodule.c +++ b/gio/giomodule.c @@ -733,11 +733,10 @@ try_class (GIOExtension *extension, typedef gboolean (*verify_func) (void); gpointer class; - class = g_type_class_ref (type); + class = g_type_class_get (type); if (!is_supported_offset || (* G_STRUCT_MEMBER(verify_func, class, is_supported_offset)) ()) return class; - g_type_class_unref (class); return NULL; }