if (v == NULL)
goto fail;
ret = g_variant_new_string (v);
+ g_free (v);
}
}
else if (g_variant_type_equal (type, G_VARIANT_TYPE_OBJECT_PATH))
G_IO_ERROR_INVALID_ARGUMENT,
_("Parsed value `%s' is not a valid D-Bus object path"),
v);
+ g_free (v);
goto fail;
}
ret = g_variant_new_object_path (v);
+ g_free (v);
}
}
else if (g_variant_type_equal (type, G_VARIANT_TYPE_SIGNATURE))
G_IO_ERROR_INVALID_ARGUMENT,
_("Parsed value `%s' is not a valid D-Bus signature"),
v);
+ g_free (v);
goto fail;
}
ret = g_variant_new_signature (v);
+ g_free (v);
}
}
else if (g_variant_type_is_array (type))
G_IO_ERROR_INVALID_ARGUMENT,
_("Parsed value `%s' for variant is not a valid D-Bus signature"),
sig);
+ g_free (sig);
goto fail;
}
variant_type = g_variant_type_new (sig);
+ g_free (sig);
value = parse_value_from_blob (mis,
dis,
variant_type,