core: fix D-Bus value for NM_IP6_CONFIG_ROUTES

Caused NMIP6Config:Routes property to have bogus values
and leaked the variants.

Fixes: 6c8f860820
This commit is contained in:
Thomas Haller 2015-09-10 13:29:02 +02:00
parent 12746da039
commit 04c4128356

View file

@ -2019,10 +2019,10 @@ get_property (GObject *object, guint prop_id,
g_variant_builder_add (&array_builder, "(@ayu@ayu)",
g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE,
&route->network, 16, 1),
g_variant_new_uint32 (route->plen),
(guint32) route->plen,
g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE,
&route->gateway, 16, 1),
g_variant_new_uint32 (route->metric));
(guint32) route->metric);
}
g_value_take_variant (value, g_variant_builder_end (&array_builder));