From e68122c378588ae97240394f3cb948df165cfd36 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 1 Feb 2011 14:47:37 +1100 Subject: Fix memory leak when using Cairo for drawing. Bug #3157655. --- gtk/PlatGTK.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 24f44ee21..b8d94f94d 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -893,6 +893,7 @@ void SurfaceImpl::Init(WindowID wid) { psurf = cairo_image_surface_create(CAIRO_FORMAT_RGB24, 1, 1); context = cairo_create(psurf); } + createdGC = true; pcontext = pango_cairo_create_context(context); PLATFORM_ASSERT(pcontext); layout = pango_cairo_create_layout(context); -- cgit v1.2.3