Return-Path: X-Original-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E25AA973F for ; Fri, 15 Jun 2012 08:52:34 +0000 (UTC) Received: (qmail 89739 invoked by uid 500); 15 Jun 2012 08:52:34 -0000 Delivered-To: apmail-incubator-ooo-commits-archive@incubator.apache.org Received: (qmail 89641 invoked by uid 500); 15 Jun 2012 08:52:34 -0000 Mailing-List: contact ooo-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-commits@incubator.apache.org Received: (qmail 89634 invoked by uid 99); 15 Jun 2012 08:52:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2012 08:52:34 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2012 08:52:33 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A758F2388BA6; Fri, 15 Jun 2012 08:52:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1350539 - /incubator/ooo/trunk/main/i18npool/source/textconversion/textconversion_zh.cxx Date: Fri, 15 Jun 2012 08:52:13 -0000 To: ooo-commits@incubator.apache.org From: hdu@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120615085213.A758F2388BA6@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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