Fix a huge memory leak in Litehtml
authorAndrej Kacian <ticho@claws-mail.org>
Tue, 29 Jan 2019 21:23:54 +0000 (22:23 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Tue, 12 Feb 2019 18:38:10 +0000 (19:38 +0100)
src/plugins/litehtml_viewer/container_linux.cpp

index c34df5f..26845fb 100644 (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;
 }