mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 07:29:32 +00:00
Add compress_buf_free function
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@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
aed25d8407
commit
fa4eb13f7b
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user