diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-03-15 18:55:39 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-03-15 18:56:09 +0100 |
commit | 80fd82a6fbd2561d12a8f7d1aa82c435bf1e6aa4 (patch) | |
tree | 033d913acd8a68369d349b6120e29d05e751eae6 /sw | |
parent | df3cbe026f2d5b432283625fa30cc910c484abdc (diff) |
coverity#736522/736523: Resource leak
Change-Id: I13f3a71b675be950dedfebf5465f48257af10015
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/itradj.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/text/itradj.cxx b/sw/source/core/text/itradj.cxx index d8651dc716e0..d792868e63ae 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 ) ) |