[Spice-devel] [PATCH spice-server v2 20/23] image-cache: Use GLib memory functions
Jonathon Jongsma
jjongsma at redhat.com
Fri Sep 22 21:28:37 UTC 2017
Acked-by: Jonathon Jongsma <jjongsma at redhat.com>
On Wed, 2017-09-20 at 08:51 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> server/image-cache.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/server/image-cache.c b/server/image-cache.c
> index bd888bef2..3493ba1fc 100644
> --- a/server/image-cache.c
> +++ b/server/image-cache.c
> @@ -64,7 +64,7 @@ static void image_cache_remove(ImageCache *cache,
> ImageCacheItem *item)
> }
> ring_remove(&item->lru_link);
> pixman_image_unref(item->image);
> - free(item);
> + g_free(item);
> #ifndef IMAGE_CACHE_AGE
> cache->num_items--;
> #endif
> @@ -86,7 +86,7 @@ static void image_cache_put(SpiceImageCache
> *spice_cache, uint64_t id, pixman_im
> }
> #endif
>
> - item = spice_new(ImageCacheItem, 1);
> + item = g_new(ImageCacheItem, 1);
> item->id = id;
> #ifdef IMAGE_CACHE_AGE
> item->age = cache->age;
More information about the Spice-devel
mailing list