sw/source/core/text/itradj.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 80fd82a6fbd2561d12a8f7d1aa82c435bf1e6aa4
Author: Julien Nabet <serval2...@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 ) )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to