mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Don't copy values in g_object_new
We can safely use the values without copying here. This is safe because we are not emitting any signals before we are done setting the values as properties.
This commit is contained in:
parent
964f6ef8d0
commit
d50bc3c1c3
@ -2388,7 +2388,7 @@ g_object_new_valist (GType object_type,
|
||||
params[n_params].value = &values[n_params];
|
||||
memset (&values[n_params], 0, sizeof (GValue));
|
||||
|
||||
G_VALUE_COLLECT_INIT2 (&values[n_params], vtabs[n_params], pspec->value_type, var_args, 0, &error);
|
||||
G_VALUE_COLLECT_INIT2 (&values[n_params], vtabs[n_params], pspec->value_type, var_args, G_VALUE_NOCOPY_CONTENTS, &error);
|
||||
|
||||
if (error)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user