Start using GLib memory allocation

Enterprise / Virtualization / SPICE - Frediano Ziglio [redhat.com] - 19 September 2017 11:17 EDT

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(). This patch remove some easy ones.

a990437 Start using GLib memory allocation
server/common-graphics-channel.c | 4 ++--
server/dcc-send.c | 4 ++--
server/display-channel.c | 6 +++---
server/jpeg-encoder.c | 8 ++++----
server/lz4-encoder.c | 4 ++--
server/main-channel-client.c | 14 +++++++-------
server/memslot.c | 8 ++++----
server/red-channel-capabilities.c | 14 +++++++-------
server/red-qxl.c | 4 ++--
server/red-worker.c | 8 ++++----
server/reds.c | 10 +++++-----
server/smartcard-channel-client.c | 4 ++--
server/stat-file.c | 7 +++----
server/stream.c | 12 ++++++------
server/zlib-encoder.c | 6 +++---
15 files changed, 56 insertions(+), 57 deletions(-)

Upstream: cgit.freedesktop.org


  • Share