Commit c4f8eb7e authored by Adrien Plazas's avatar Adrien Plazas

gdkpixbuf-drawable: Free the pixbuf on Cairo error

This avoids leaking the pixbuf.
parent 7208c97c
......@@ -288,6 +288,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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment