vcl/source/outdev/text.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit bdab2dc21c42c33c92317d13cfacb4b142824d13 Author: David Tardon <dtar...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits