mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 02:32:11 +01:00
dbusauthmechanism: Stop using g_type_class_ref/unref
These are just wrappers for g_type_class_get/nothing now.
This commit is contained in:
parent
ec8f4cec49
commit
03c1c6382d
@ -188,10 +188,8 @@ _g_dbus_auth_mechanism_get_name (GType mechanism_type)
|
||||
|
||||
g_return_val_if_fail (g_type_is_a (mechanism_type, G_TYPE_DBUS_AUTH_MECHANISM), NULL);
|
||||
|
||||
klass = g_type_class_ref (mechanism_type);
|
||||
g_assert (klass != NULL);
|
||||
klass = g_type_class_get (mechanism_type);
|
||||
name = klass->get_name ();
|
||||
//g_type_class_unref (klass);
|
||||
|
||||
return name;
|
||||
}
|
||||
@ -204,10 +202,8 @@ _g_dbus_auth_mechanism_get_priority (GType mechanism_type)
|
||||
|
||||
g_return_val_if_fail (g_type_is_a (mechanism_type, G_TYPE_DBUS_AUTH_MECHANISM), 0);
|
||||
|
||||
klass = g_type_class_ref (mechanism_type);
|
||||
g_assert (klass != NULL);
|
||||
klass = g_type_class_get (mechanism_type);
|
||||
priority = klass->get_priority ();
|
||||
//g_type_class_unref (klass);
|
||||
|
||||
return priority;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user