Re: [PATCH] ui/console: fix three double frees in png_save()

2022-09-18 Thread Philippe Mathieu-Daudé via
+Kshitij On Sun, Sep 18, 2022 at 6:24 PM Volker Rümelin wrote: > > The png_destroy_write_struct() function frees all memory used by > libpng. Don't use the glib auto cleanup mechanism to free the > memory allocated by libpng again. For the pixman image, use only the > auto cleanup mechanism and r

[PATCH] ui/console: fix three double frees in png_save()

2022-09-18 Thread Volker Rümelin
The png_destroy_write_struct() function frees all memory used by libpng. Don't use the glib auto cleanup mechanism to free the memory allocated by libpng again. For the pixman image, use only the auto cleanup mechanism and remove the qemu_pixman_image_unref() function call to prevent another double