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

avoid memory leak

Change-Id: I89e458dbd01a45761948b64cb457424383ca5f51
üst f6df52aa
...@@ -2409,7 +2409,10 @@ bool OutputDevice::GetTextBoundRect( Rectangle& rRect, ...@@ -2409,7 +2409,10 @@ bool OutputDevice::GetTextBoundRect( Rectangle& rRect,
Point aOffset( nWidth/2, 8 ); Point aOffset( nWidth/2, 8 );
Size aOutSize( nWidth + 2*aOffset.X(), nHeight + 2*aOffset.Y() ); Size aOutSize( nWidth + 2*aOffset.X(), nHeight + 2*aOffset.Y() );
if( !nWidth || !aVDev.SetOutputSizePixel( aOutSize ) ) if( !nWidth || !aVDev.SetOutputSizePixel( aOutSize ) )
{
pSalLayout->Release();
return false; return false;
}
// draw text in black // draw text in black
pSalLayout->DrawBase() = aOffset; pSalLayout->DrawBase() = aOffset;
......
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