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>
This commit is contained in:
Mark Wielaard
2013-06-08 00:38:00 +02:00
committed by David Tardon
parent 9e958cd987
commit cad5e28b6b

View File

@@ -572,6 +572,7 @@ namespace cairocanvas
cairo_restore( pSCairo.get() );
cairo_font_face_destroy(font_face);
cairo_font_options_destroy(options);
}
return true;
}