Kaydet (Commit) 80fd82a6 authored tarafından Julien Nabet's avatar Julien Nabet

coverity#736522/736523: Resource leak

Change-Id: I13f3a71b675be950dedfebf5465f48257af10015
üst df3cbe02
...@@ -157,7 +157,11 @@ static bool lcl_CheckKashidaPositions( SwScriptInfo& rSI, SwTxtSizeInfo& rInf, S ...@@ -157,7 +157,11 @@ static bool lcl_CheckKashidaPositions( SwScriptInfo& rSI, SwTxtSizeInfo& rInf, S
{ {
// Kashida glyph looks suspicious, skip Kashida justification // Kashida glyph looks suspicious, skip Kashida justification
if ( rInf.GetOut()->GetMinKashida() <= 0 ) if ( rInf.GetOut()->GetMinKashida() <= 0 )
{
delete[] pKashidaPos;
delete[] pKashidaPosDropped;
return false; return false;
}
xub_StrLen nKashidasDropped = 0; xub_StrLen nKashidasDropped = 0;
if ( !SwScriptInfo::IsArabicText( rInf.GetTxt(), nIdx, nNext - nIdx ) ) if ( !SwScriptInfo::IsArabicText( rInf.GetTxt(), nIdx, nNext - nIdx ) )
......
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