gdkpixbuf-drawable: Free the pixbuf on Cairo error

This avoids leaking the pixbuf.
This commit is contained in:
Adrien Plazas 2020-12-14 13:39:42 +01:00
parent e2afb59a0b
commit dc96542742

View File

@ -202,6 +202,7 @@ gdk_pixbuf_get_from_surface (cairo_surface_t *surface,
if (cairo_surface_status (surface) || dest == NULL)
{
cairo_surface_destroy (surface);
g_clear_object (&dest);
return NULL;
}