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:
committed by
David Tardon
parent
9e958cd987
commit
cad5e28b6b
@@ -572,6 +572,7 @@ namespace cairocanvas
|
||||
|
||||
cairo_restore( pSCairo.get() );
|
||||
cairo_font_face_destroy(font_face);
|
||||
cairo_font_options_destroy(options);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user