Fix a huge memory leak in Litehtml

This commit is contained in:
Andrej Kacian 2019-01-29 22:23:54 +01:00
parent 03d8afe967
commit a75a6516bd

View file

@ -887,6 +887,7 @@ cairo_surface_t* container_linux::surface_from_pixbuf(const GdkPixbuf *bmp)
// Gdk::Cairo::set_source_pixbuf(ctx, bmp, 0.0, 0.0);
cairo_t *ctx = cairo_create(ret);
cairo_paint(ctx);
cairo_destroy(ctx);
return ret;
}