aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-02-01 14:47:37 +1100
committernyamatongwe <devnull@localhost>2011-02-01 14:47:37 +1100
commit7825094235ef0210a9781aed1e7bfd41cee67bf9 (patch)
tree064f3dabd8bf0f590dac1941f9e1d82e08c77537 /gtk/PlatGTK.cxx
parent448b0e1edd504345e1ddf7992e62561ebcc1ce57 (diff)
downloadscintilla-mirror-7825094235ef0210a9781aed1e7bfd41cee67bf9.tar.gz
Fix memory leak when using Cairo for drawing. Bug #3157655.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r--gtk/PlatGTK.cxx1
1 files changed, 1 insertions, 0 deletions
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);