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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

Christophe
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]