incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1350313 - /incubator/ooo/trunk/main/sc/source/filter/xml/XMLTextPContext.cxx
Date Thu, 14 Jun 2012 16:11:52 GMT
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,



Mime
View raw message