GVariant: lock before freeing, to avoid assert

This commit is contained in:
Ryan Lortie 2010-02-11 16:52:20 -05:00
parent fd3923aba2
commit e66d66c555

View File

@ -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)