mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
gvariant: Fix a leak of a GVariantTypeInfo on an error handling path
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
c2dc74e2ec
commit
f98c60e4ee
@ -1183,6 +1183,7 @@ g_variant_get_child_value (GVariant *value,
|
|||||||
G_VARIANT_MAX_RECURSION_DEPTH - value->depth)
|
G_VARIANT_MAX_RECURSION_DEPTH - value->depth)
|
||||||
{
|
{
|
||||||
g_assert (g_variant_is_of_type (value, G_VARIANT_TYPE_VARIANT));
|
g_assert (g_variant_is_of_type (value, G_VARIANT_TYPE_VARIANT));
|
||||||
|
g_variant_type_info_unref (s_child.type_info);
|
||||||
return g_variant_new_tuple (NULL, 0);
|
return g_variant_new_tuple (NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user