mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
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:
parent
76ed55f3a7
commit
2e1ceb9563
@ -2305,7 +2305,6 @@ g_signal_chain_from_overridden_handler (gpointer instance,
|
|||||||
}
|
}
|
||||||
|
|
||||||
SIGNAL_UNLOCK ();
|
SIGNAL_UNLOCK ();
|
||||||
instance_and_params->g_type = 0;
|
|
||||||
g_value_init_from_instance (instance_and_params, instance);
|
g_value_init_from_instance (instance_and_params, instance);
|
||||||
SIGNAL_LOCK ();
|
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);
|
g_value_init_from_instance (instance_and_params, instance);
|
||||||
if (node_copy.return_type == G_TYPE_NONE)
|
if (node_copy.return_type == G_TYPE_NONE)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user