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/14 18:11:52 UTC

svn commit: r1350313 - /incubator/ooo/trunk/main/sc/source/filter/xml/XMLTextPContext.cxx

Author: hdu
Date: Thu Jun 14 16:11:51 2012
New Revision: 1350313

URL: http://svn.apache.org/viewvc?rev=1350313&view=rev
Log:
#c705682# fix a minor resource leak in ScXMLTextPContext::AddSpaces()

Modified:
    incubator/ooo/trunk/main/sc/source/filter/xml/XMLTextPContext.cxx

Modified: incubator/ooo/trunk/main/sc/source/filter/xml/XMLTextPContext.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sc/source/filter/xml/XMLTextPContext.cxx?rev=1350313&r1=1350312&r2=1350313&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sc/source/filter/xml/XMLTextPContext.cxx (original)
+++ incubator/ooo/trunk/main/sc/source/filter/xml/XMLTextPContext.cxx Thu Jun 14 16:11:51 2012
@@ -122,6 +122,7 @@ void ScXMLTextPContext::AddSpaces(sal_In
 	sal_Char* pChars = new sal_Char[nSpaceCount];
 	memset(pChars, ' ', nSpaceCount);
     pContentBuffer->appendAscii(pChars, nSpaceCount);
+	delete[] pChars;
 }
 
 SvXMLImportContext *ScXMLTextPContext::CreateChildContext( sal_uInt16 nTempPrefix,