diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-05 16:44:52 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-05 16:44:52 +0000 |
commit | 6ccec360dda099a6da2ec9360353a6f928ad63bd (patch) | |
tree | 865250c964eb518269fe3aae3f60ffc24e67d9ad /sal/osl/unx/osxlocale.cxx | |
parent | 611f140fe216697efe137eecad7f05755f4e1dc4 (diff) |
INTEGRATION: CWS aquavcl05_DEV300 (1.2.94); FILE MERGED
2008/01/29 09:08:08 ericb 1.2.94.1: #i81024# fix leak
Diffstat (limited to 'sal/osl/unx/osxlocale.cxx')
-rw-r--r-- | sal/osl/unx/osxlocale.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sal/osl/unx/osxlocale.cxx b/sal/osl/unx/osxlocale.cxx index 362dbd848eb8..7185c16833ae 100644 --- a/sal/osl/unx/osxlocale.cxx +++ b/sal/osl/unx/osxlocale.cxx @@ -4,9 +4,9 @@ * * $RCSfile: osxlocale.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2007-07-03 12:49:13 $ + * last change: $Author: kz $ $Date: 2008-03-05 17:44:52 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -129,6 +129,9 @@ extern "C" int macxp_OSXConvertCFEncodingToIANACharSetName( char *buffer, unsign sCFEncodingName = CFStringConvertEncodingToIANACharSetName( cfEncoding ); CFStringGetCString( sCFEncodingName, buffer, bufferLen, cfEncoding ); + if ( sCFEncodingName ) + CFRelease( sCFEncodingName ); + return( noErr ); } |