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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]