RE: [PATCH v3 12/20] virtio-gpu: Add virtio_gpu_set_scanout_blob

2021-05-11 Thread Kasireddy, Vivek
Hi Gerd, > > -pixman_image_unref(res->image); > > +if (res->image) { > > +pixman_image_unref(res->image); > > +} > > There is qemu_pixman_image_unref(). > > Like pixman_image_unref except that it also accepts (and ignores) NULL > pointers. [Kasireddy, Vivek] Made the change i

Re: [PATCH v3 12/20] virtio-gpu: Add virtio_gpu_set_scanout_blob

2021-05-11 Thread Gerd Hoffmann
Hi, > -pixman_image_unref(res->image); > +if (res->image) { > +pixman_image_unref(res->image); > +} There is qemu_pixman_image_unref(). Like pixman_image_unref except that it also accepts (and ignores) NULL pointers. > virtio_gpu_cleanup_mapping(g, res); > QTAILQ