diff options
| author | nyamatongwe <unknown> | 2011-02-01 14:47:37 +1100 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2011-02-01 14:47:37 +1100 |
| commit | e68122c378588ae97240394f3cb948df165cfd36 (patch) | |
| tree | 3a0745ba5fb2f7f13a6dd02a903abad3f264e097 | |
| parent | f2841b21648808ee95affbb628ade18475ceeb2e (diff) | |
| download | scintilla-mirror-e68122c378588ae97240394f3cb948df165cfd36.tar.gz | |
Fix memory leak when using Cairo for drawing. Bug #3157655.
| -rw-r--r-- | gtk/PlatGTK.cxx | 1 |
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); |
