incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1351616 - /incubator/ooo/trunk/main/sw/source/filter/ww8/ww8graf.cxx
Date Tue, 19 Jun 2012 09:20:16 GMT
Author: hdu
Date: Tue Jun 19 09:20:16 2012
New Revision: 1351616

URL: http://svn.apache.org/viewvc?rev=1351616&view=rev
Log:
#i120028# fix memory leak in function SwWW8ImplReader::MatchSdrBoxIntoFlyBoxItem

Patch by: Chao Huang
Found by: Chao Huang
Review by: Herbert Duerr

Modified:
    incubator/ooo/trunk/main/sw/source/filter/ww8/ww8graf.cxx

Modified: incubator/ooo/trunk/main/sw/source/filter/ww8/ww8graf.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sw/source/filter/ww8/ww8graf.cxx?rev=1351616&r1=1351615&r2=1351616&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sw/source/filter/ww8/ww8graf.cxx (original)
+++ incubator/ooo/trunk/main/sw/source/filter/ww8/ww8graf.cxx Tue Jun 19 09:20:16 2012
@@ -1665,7 +1665,11 @@ sal_Int32 SwWW8ImplReader::MatchSdrBoxIn
         aLine.SetDistance(rBorders.mnDist);
 
         for(sal_uInt16 nLine = 0; nLine < 4; ++nLine)
-            rBox.SetLine(new SvxBorderLine( aLine ), nLine);
+		{
+			SvxBorderLine *pLine = new SvxBorderLine( aLine );
+			rBox.SetLine(pLine, nLine);
+			delete pLine;
+		}
     }
 
     return nOutsideThick;



Mime
View raw message