[Spice-devel] [PATCH spice-gtk 4/7] usbredir: make channel lifetime equal to session lifetime
Marc-André Lureau
marcandre.lureau at gmail.com
Sun Feb 19 06:19:34 PST 2012
On Sun, Feb 19, 2012 at 12:50 AM, Hans de Goede <hdegoede at 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
More information about the Spice-devel
mailing list