Kaydet (Commit) dbf093aa authored tarafından David Tardon's avatar David Tardon

coverity#982921 do not leak

Change-Id: I7f40b7e72caa67644b23f02fa6c2a4ccfe4f354d
üst 7e492041
...@@ -332,7 +332,7 @@ namespace cairocanvas ...@@ -332,7 +332,7 @@ namespace cairocanvas
OSL_TRACE(":cairocanvas::CanvasHelper::drawText(O,t,f,v,r,d): %s", OUStringToOString( text.Text.copy( text.StartPosition, text.Length ), OSL_TRACE(":cairocanvas::CanvasHelper::drawText(O,t,f,v,r,d): %s", OUStringToOString( text.Text.copy( text.StartPosition, text.Length ),
RTL_TEXTENCODING_UTF8 ).getStr()); RTL_TEXTENCODING_UTF8 ).getStr());
TextLayout* pTextLayout = new TextLayout(text, textDirection, 0, CanvasFont::Reference(dynamic_cast< CanvasFont* >( xFont.get() )), mpSurfaceProvider); rtl::Reference< TextLayout > pTextLayout( new TextLayout(text, textDirection, 0, CanvasFont::Reference(dynamic_cast< CanvasFont* >( xFont.get() )), mpSurfaceProvider) );
pTextLayout->draw( mpSurface, *mpVirtualDevice, aOutpos, viewState, renderState ); pTextLayout->draw( mpSurface, *mpVirtualDevice, aOutpos, viewState, renderState );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment