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 <fzig...@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 fed8d58..e4eabc0 100644
--- a/server/dcc-encoders.h
+++ b/server/dcc-encoders.h
@@ -64,6 +64,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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to