Hi

On Fri, Feb 17, 2012 at 9:44 AM, Alon Levy <al...@redhat.com> wrote:
> +QXLCookie *qxl_cookie_new(int type, uint64_t io, uint64_t data)
> +{
> +    QXLCookie *cookie;
> +
> +    cookie = g_malloc0(sizeof(*cookie));
> +    cookie->type = type;
> +    cookie->io = io;
> +    cookie->data = data;
> +    return cookie;
> +}

I don't know if it's prohibited in qemu code, but g_slice would be a
good fit here: frequently allocated bits of same size.

-- 
Marc-André Lureau

Reply via email to