[Spice-devel] [PATCH spice-server 1/9] reds: Use GLib memory functions for RedVDIReadBuf

Victor Toso victortoso at redhat.com
Tue Dec 5 09:09:29 UTC 2017


Hi,

On Tue, Dec 05, 2017 at 08:41:04AM +0000, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>

> ---
>  server/reds.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/server/reds.c b/server/reds.c
> index 64b3a967..4e652253 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -4519,7 +4519,7 @@ red_char_device_vdi_port_init(RedCharDeviceVDIPort *self)
>      self->priv->receive_len = sizeof(self->priv->vdi_chunk_header);
>  
>      for (i = 0; i < REDS_VDI_PORT_NUM_RECEIVE_BUFFS; i++) {
> -        RedVDIReadBuf *buf = spice_new0(RedVDIReadBuf, 1);
> +        RedVDIReadBuf *buf = g_new0(RedVDIReadBuf, 1);

Yes, last one in server
Acked-by: Victor Toso <victortoso at redhat.com>

>          vdi_read_buf_init(buf);
>          buf->dev = self;
>          g_warn_if_fail(!self->priv->agent_attached);
> -- 
> 2.14.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20171205/f3e87e16/attachment.sig>


More information about the Spice-devel mailing list