mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Don't copy values during g_object_set
It is safe not to copy arguments here, because we are not emitting any signals before we are done setting the values as properties. This matches what we do for g_object_new now.
This commit is contained in:
parent
d50bc3c1c3
commit
95caffcd26
@ -2582,7 +2582,7 @@ g_object_set_valist (GObject *object,
|
||||
if (!g_object_set_is_valid_property (object, pspec, name))
|
||||
break;
|
||||
|
||||
G_VALUE_COLLECT_INIT2 (&value, vtab, pspec->value_type, var_args, 0, &error);
|
||||
G_VALUE_COLLECT_INIT2 (&value, vtab, pspec->value_type, var_args, G_VALUE_NOCOPY_CONTENTS, &error);
|
||||
if (error)
|
||||
{
|
||||
g_warning ("%s: %s", G_STRFUNC, error);
|
||||
|
Loading…
Reference in New Issue
Block a user