[Libreoffice-commits] core.git: canvas/source
Mark Wielaard
mark at klomp.org
Sun Jun 9 22:03:40 PDT 2013
canvas/source/cairo/cairo_textlayout.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit cad5e28b6bf761268d40236cd8aa381680007cae
Author: Mark Wielaard <mark at klomp.org>
Date: Sat Jun 8 00:38:00 2013 +0200
Fix memory leak in cairo TextLayout::draw.
Destroy cairo_font_options when done.
Change-Id: Ib49c07dee22fa59b4f6227c6b106a18b615aa060
Reviewed-on: https://gerrit.libreoffice.org/4193
Reviewed-by: David Tardon <dtardon at redhat.com>
Tested-by: David Tardon <dtardon at redhat.com>
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx
index fe55665..35defcd 100644
--- a/canvas/source/cairo/cairo_textlayout.cxx
+++ b/canvas/source/cairo/cairo_textlayout.cxx
@@ -572,6 +572,7 @@ namespace cairocanvas
cairo_restore( pSCairo.get() );
cairo_font_face_destroy(font_face);
+ cairo_font_options_destroy(options);
}
return true;
}
More information about the Libreoffice-commits
mailing list