summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2013-06-08 00:38:00 +0200
committerDavid Tardon <dtardon@redhat.com>2013-06-10 05:03:19 +0000
commitcad5e28b6bf761268d40236cd8aa381680007cae (patch)
tree07d16c5c048c53cbf5655253c57b19bac675f51e /canvas
parent9e958cd987be307e73467d168ae1d323d775e187 (diff)
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@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_textlayout.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx
index fe55665b87e0..35defcd9080b 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;
}