signalgroup: 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:16:37 -04:00
parent 85ab6140a7
commit 469357e3c9

View File

@ -117,15 +117,9 @@ g_signal_group_set_target_type (GSignalGroup *self,
* to be registered, otherwise g_signal_parse_name() will fail
*/
if (G_TYPE_IS_INTERFACE (target_type))
{
if (g_type_default_interface_peek (target_type) == NULL)
g_type_default_interface_unref (g_type_default_interface_ref (target_type));
}
g_type_default_interface_get (target_type);
else
{
if (g_type_class_peek (target_type) == NULL)
g_type_class_unref (g_type_class_ref (target_type));
}
g_type_class_get (target_type);
}
static void