[Libreoffice-commits] core.git: vcl/source
David Tardon
dtardon at redhat.com
Mon Jul 14 09:51:44 PDT 2014
vcl/source/outdev/text.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit bdab2dc21c42c33c92317d13cfacb4b142824d13
Author: David Tardon <dtardon at redhat.com>
Date: Mon Jul 14 18:50:14 2014 +0200
avoid memory leak
Change-Id: I89e458dbd01a45761948b64cb457424383ca5f51
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index 7b95566..1c20f7f 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -2409,7 +2409,10 @@ bool OutputDevice::GetTextBoundRect( Rectangle& rRect,
Point aOffset( nWidth/2, 8 );
Size aOutSize( nWidth + 2*aOffset.X(), nHeight + 2*aOffset.Y() );
if( !nWidth || !aVDev.SetOutputSizePixel( aOutSize ) )
+ {
+ pSalLayout->Release();
return false;
+ }
// draw text in black
pSalLayout->DrawBase() = aOffset;
More information about the Libreoffice-commits
mailing list