[Spice-devel] [PATCH spice-server 00/11] Start using GLib memory allocation

Frediano Ziglio fziglio at redhat.com
Mon Sep 11 15:15:42 UTC 2017


Start reducing the usage of spice_new*/spice_malloc* allocations.
They were designed in a similar way to GLib ones.
Now that we use GLib make sense to remove them.
However the versions we support for GLib can use different memory
allocators so we have to match g_free with GLib allocations
and spice_* ones (which uses always malloc allocator) with free().

The final target is to remove spice_new*/spice_malloc*
functions/helper from spice-common.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>

Frediano Ziglio (11):
  Start using GLib memory allocation
  image-encoders: Use GLib memory functions
  sound: Use GLib memory functions
  reds: Start using GLib memory functions
  reds: Use GLib memory functions for link
  reds: Use GLib memory functions for migration data
  Use GLib memory functions for RedsMigSpice::host
  reds: Use GLib memory functions for RedServerConfig::mig_spice
  reds: Use GLib memory functions for RedServerConfig
  Use GLib memory functions for RedsMigSpice::cert_subject
  lz4-encoder: Use GLib memory functions

 server/common-graphics-channel.c  |  4 +--
 server/dcc-send.c                 |  4 +--
 server/display-channel.c          |  6 ++--
 server/image-encoders.c           | 20 ++++++-------
 server/jpeg-encoder.c             |  8 ++---
 server/lz4-encoder.c              | 25 ++++++++--------
 server/main-channel-client.c      | 14 ++++-----
 server/main-channel.c             |  8 ++---
 server/memslot.c                  |  8 ++---
 server/red-channel-capabilities.c | 14 ++++-----
 server/red-qxl.c                  |  4 +--
 server/red-worker.c               |  8 ++---
 server/reds.c                     | 63 ++++++++++++++++++++-------------------
 server/smartcard-channel-client.c |  4 +--
 server/sound.c                    | 16 +++++-----
 server/stat-file.c                |  7 ++---
 server/stream.c                   | 12 ++++----
 server/zlib-encoder.c             |  6 ++--
 18 files changed, 116 insertions(+), 115 deletions(-)

-- 
2.13.5



More information about the Spice-devel mailing list