static void virtio_gpu_resource_destroy(VirtIOGPU *g,

                                        struct virtio_gpu_simple_resource *res)

{

    pixman_image_unref(res->image);


    QTAILQ_REMOVE(&g->reslist, res, next);

    g->hostmem -= res->hostmem;

    g_free(res);

}
static void virtio_gpu_resource_destroy(VirtIOGPU *g,

                                        struct virtio_gpu_simple_resource *res)

{

    pixman_image_unref(res->image);


    QTAILQ_REMOVE(&g->reslist, res, next);

    g->hostmem -= res->hostmem;

    g_free(res);

}
static void FUNC_0(VirtIOGPU *VAR_0,

                                        struct virtio_gpu_simple_resource *VAR_1)

{

    pixman_image_unref(VAR_1->image);


    QTAILQ_REMOVE(&VAR_0->reslist, VAR_1, next);

    VAR_0->hostmem -= VAR_1->hostmem;

    g_free(VAR_1);

}
static void FUNC_0(VirtIOGPU *VAR_0,
struct virtio_gpu_simple_resource *VAR_1)
{ pixman_image_unref(VAR_1->image); QTAILQ_REMOVE(&VAR_0->reslist, VAR_1, next); VAR_0->hostmem -= VAR_1->hostmem; g_free(VAR_1); }