[Spice-devel] [PATCH 1/2] Add compress_buf_free function

Christophe Fergeau cfergeau at redhat.com
Wed Jun 8 16:13:35 UTC 2016


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

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 at redhat.com>
> ---
>  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 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: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160608/b17fa94d/attachment.sig>


More information about the Spice-devel mailing list