[Libreoffice-commits] core.git: sw/source
Julien Nabet
serval2412 at yahoo.fr
Fri Mar 15 10:58:14 PDT 2013
sw/source/core/text/itradj.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 80fd82a6fbd2561d12a8f7d1aa82c435bf1e6aa4
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Fri Mar 15 18:55:39 2013 +0100
coverity#736522/736523: Resource leak
Change-Id: I13f3a71b675be950dedfebf5465f48257af10015
diff --git a/sw/source/core/text/itradj.cxx b/sw/source/core/text/itradj.cxx
index d8651dc..d792868 100644
--- a/sw/source/core/text/itradj.cxx
+++ b/sw/source/core/text/itradj.cxx
@@ -157,7 +157,11 @@ static bool lcl_CheckKashidaPositions( SwScriptInfo& rSI, SwTxtSizeInfo& rInf, S
{
// Kashida glyph looks suspicious, skip Kashida justification
if ( rInf.GetOut()->GetMinKashida() <= 0 )
+ {
+ delete[] pKashidaPos;
+ delete[] pKashidaPosDropped;
return false;
+ }
xub_StrLen nKashidasDropped = 0;
if ( !SwScriptInfo::IsArabicText( rInf.GetTxt(), nIdx, nNext - nIdx ) )
More information about the Libreoffice-commits
mailing list