Re: [PATCH 1/2] Add compress_buf_free function

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

 



Acked-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>

On Fri, Jun 03, 2016 at 04:40:22PM +0100, Frediano Ziglio wrote:
> dcc-encoders should be in change of allocate and free the structure
> don't put internal assumptions (which functions are used for memory
> management) in different files.
> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  server/dcc-encoders.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/server/dcc-encoders.h b/server/dcc-encoders.h
> index 0d3e96a9..88351dc 100644
> --- a/server/dcc-encoders.h
> +++ b/server/dcc-encoders.h
> @@ -63,6 +63,11 @@ struct RedCompressBuf {
>      RedCompressBuf *send_next;
>  };
>  
> +static inline void compress_buf_free(RedCompressBuf *buf)
> +{
> +    g_free(buf);
> +}
> +
>  typedef struct GlzSharedDictionary {
>      RingItem base;
>      GlzEncDictContext *dict;
> -- 
> 2.7.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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]