Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- 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; -- 2.13.5 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel