On Sun, Feb 19, 2012 at 12:50 AM, Hans de Goede <hdego...@redhat.com> wrote:
> +    if (!priv->host)
> +        g_error("Out of memory allocating usbredirhost");

spice-gtk is a library, and should not abort a program using it.
However, if it's for memory allocation reasons, then it does that
already and it's the only reasonable thing to do. I would prefer if it
didn't call g_error() here. Why is it not the policy of libusbredir to
abort if allocation failed?

-- 
Marc-André Lureau
_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to