gsignals: Do not zero two times the instance GValue's GType

We already use g_new0 to create such arrays and nothing writes in the first
pointer till this point, so no need to zero it again.
This commit is contained in:
Marco Trevisan (Treviño) 2022-12-21 04:27:56 +01:00 committed by Philip Withnall
parent 76ed55f3a7
commit 2e1ceb9563

View File

@ -2305,7 +2305,6 @@ g_signal_chain_from_overridden_handler (gpointer instance,
}
SIGNAL_UNLOCK ();
instance_and_params->g_type = 0;
g_value_init_from_instance (instance_and_params, instance);
SIGNAL_LOCK ();
@ -3606,7 +3605,6 @@ signal_emit_valist_unlocked (gpointer instance,
}
}
instance_and_params->g_type = 0;
g_value_init_from_instance (instance_and_params, instance);
if (node_copy.return_type == G_TYPE_NONE)
{