summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-09-13 15:31:41 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-09-13 15:31:41 +0000
commitb573cc299b85d013889d192eeccd2d37a434fca4 (patch)
tree175e4e34ee97cd6df40ea533992bd3a4713fb367 /vcl
parent996bb24706eda0fbd187630c60a972d6aadc836c (diff)
INTEGRATION: CWS aquavclcarbonfixes (1.9.66); FILE MERGED
2007/08/24 09:25:12 ericb 1.9.66.1: #i80997# fix some little leaks
Diffstat (limited to 'vcl')
-rw-r--r--vcl/aqua/source/gdi/salprn.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/vcl/aqua/source/gdi/salprn.cxx b/vcl/aqua/source/gdi/salprn.cxx
index 0d0d76e054a0..fcff71c18586 100644
--- a/vcl/aqua/source/gdi/salprn.cxx
+++ b/vcl/aqua/source/gdi/salprn.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: salprn.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: rt $ $Date: 2007-07-05 10:20:17 $
+ * last change: $Author: ihi $ $Date: 2007-09-13 16:31:41 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -73,7 +73,8 @@ AquaSalInfoPrinter::AquaSalInfoPrinter( const SalPrinterQueueInfo& i_rQueue ) :
// in an actual print job; is this by design ?
CFStringRef rFile = CreateCFString( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/dev/null" ) ) );
CFURLRef rURL = CFURLCreateWithFileSystemPath( NULL, rFile, kCFURLPOSIXPathStyle, false );
- CFRelease( rFile );
+ if ( rFile )
+ CFRelease( rFile );
OSStatus err =
PMSessionSetDestination( mrSession,
@@ -505,7 +506,8 @@ BOOL AquaSalInfoPrinter::StartJob( const XubString* i_pFileName,
{
CFStringRef rFile = CreateCFString( *i_pFileName );
rURL = CFURLCreateWithFileSystemPath( NULL, rFile, kCFURLPOSIXPathStyle, false );
- CFRelease( rFile );
+ if ( rFile )
+ CFRelease( rFile );
}
err =
@@ -532,7 +534,8 @@ BOOL AquaSalInfoPrinter::StartJob( const XubString* i_pFileName,
{
CFStringRef rName = CreateCFString( i_rJobName );
err = PMPrintSettingsSetJobName( mrSettings, rName );
- CFRelease( rName );
+ if ( rName )
+ CFRelease( rName );
}
if( err == noErr )