incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1350317 - /incubator/ooo/trunk/main/i18npool/source/nativenumber/nativenumbersupplier.cxx
Date Thu, 14 Jun 2012 16:28:24 GMT
Author: hdu
Date: Thu Jun 14 16:28:23 2012
New Revision: 1350317

URL: http://svn.apache.org/viewvc?rev=1350317&view=rev
Log:
#c705661# fix a memory leak in nativenumbersupplier.cxx

Modified:
    incubator/ooo/trunk/main/i18npool/source/nativenumber/nativenumbersupplier.cxx

Modified: incubator/ooo/trunk/main/i18npool/source/nativenumber/nativenumbersupplier.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/i18npool/source/nativenumber/nativenumbersupplier.cxx?rev=1350317&r1=1350316&r2=1350317&view=diff
==============================================================================
--- incubator/ooo/trunk/main/i18npool/source/nativenumber/nativenumbersupplier.cxx (original)
+++ incubator/ooo/trunk/main/i18npool/source/nativenumber/nativenumbersupplier.cxx Thu Jun
14 16:28:23 2012
@@ -93,7 +93,7 @@ OUString SAL_CALL AsciiToNativeChar( con
             if (useOffset)
                 offset[i] = startPos + i;
         }
-        return OUString(newStr->buffer, nCount);
+        return OUString( newStr, SAL_NO_ACQUIRE);
 }
 
 sal_Bool SAL_CALL AsciiToNative_numberMaker(const sal_Unicode *str, sal_Int32 begin, sal_Int32
len,



Mime
View raw message