[Spice-devel] [PATCH spice-server v3 6/6] cursor-channel: Use a single RedCursorPipeItem to hold the cursor

Christophe Fergeau cfergeau at redhat.com
Wed Sep 6 09:37:19 UTC 2017


On Mon, Sep 04, 2017 at 04:02:58PM +0100, Frediano Ziglio wrote:
>  
> -static CursorItem *cursor_item_new(QXLInstance *qxl, RedCursorCmd *cmd)
> +static RedCursorPipeItem *cursor_pipe_item_new(QXLInstance *qxl, RedCursorCmd *cmd)
>  {
> -    CursorItem *cursor_item;
> +    RedCursorPipeItem *item = spice_malloc0(sizeof(RedCursorPipeItem));

Fwiw, I'd favour g_new0/g_free over spice_malloc0 in new code.

Acked-by: Christophe Fergeau <cfergeau at redhat.com>

Christophe


More information about the Spice-devel mailing list