You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2012/06/19 11:20:16 UTC

svn commit: r1351616 - /incubator/ooo/trunk/main/sw/source/filter/ww8/ww8graf.cxx

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;