mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
GVariant: lock before freeing, to avoid assert
This commit is contained in:
parent
fd3923aba2
commit
e66d66c555
@ -595,6 +595,8 @@ g_variant_unref (GVariant *value)
|
||||
g_critical ("attempting to free a locked GVariant instance. "
|
||||
"This should never happen.");
|
||||
|
||||
value->state |= STATE_LOCKED;
|
||||
|
||||
g_variant_type_info_unref (value->type_info);
|
||||
|
||||
if (value->state & STATE_SERIALISED)
|
||||
|
Loading…
Reference in New Issue
Block a user