incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1350539 - /incubator/ooo/trunk/main/i18npool/source/textconversion/textconversion_zh.cxx
Date Fri, 15 Jun 2012 08:52:13 GMT
Author: hdu
Date: Fri Jun 15 08:52:13 2012
New Revision: 1350539

URL: http://svn.apache.org/viewvc?rev=1350539&view=rev
Log:
#c705663# fix a memory leak in TextConversion_zh::getCharConversion()

Modified:
    incubator/ooo/trunk/main/i18npool/source/textconversion/textconversion_zh.cxx

Modified: incubator/ooo/trunk/main/i18npool/source/textconversion/textconversion_zh.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/i18npool/source/textconversion/textconversion_zh.cxx?rev=1350539&r1=1350538&r2=1350539&view=diff
==============================================================================
--- incubator/ooo/trunk/main/i18npool/source/textconversion/textconversion_zh.cxx (original)
+++ incubator/ooo/trunk/main/i18npool/source/textconversion/textconversion_zh.cxx Fri Jun
15 08:52:13 2012
@@ -84,7 +84,7 @@ TextConversion_zh::getCharConversion(con
     for (sal_Int32 i = 0; i < nLength; i++)
         newStr->buffer[i] = 
             getOneCharConversion(aText[nStartPos+i], Data, Index);
-    return OUString( newStr->buffer, nLength);
+    return OUString( newStr, SAL_NO_ACQUIRE);
 }
 
 OUString SAL_CALL 



Mime
View raw message