iomodule: Stop using g_type_class_ref/unref

These are just wrappers for g_type_class_get/nothing now.
This commit is contained in:
Matthias Clasen 2023-09-27 06:22:58 -04:00
parent 47fa95c827
commit 9f58b8ecdc

View File

@ -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;
}