mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
iomodule: Stop using g_type_class_ref/unref
These are just wrappers for g_type_class_get/nothing now.
This commit is contained in:
parent
47fa95c827
commit
9f58b8ecdc
@ -733,11 +733,10 @@ try_class (GIOExtension *extension,
|
|||||||
typedef gboolean (*verify_func) (void);
|
typedef gboolean (*verify_func) (void);
|
||||||
gpointer class;
|
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)) ())
|
if (!is_supported_offset || (* G_STRUCT_MEMBER(verify_func, class, is_supported_offset)) ())
|
||||||
return class;
|
return class;
|
||||||
|
|
||||||
g_type_class_unref (class);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user