summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-09-13 15:31:03 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-09-13 15:31:03 +0000
commit171963e38bd8dccb89ba3e016b3889802c327052 (patch)
treec71d24ead740165a8f629870c007695954cd8871
parentd06e6558e14670a9e804ceaeb0835fa0b41894b4 (diff)
INTEGRATION: CWS aquavclcarbonfixes (1.38.20); FILE MERGED
2007/08/24 09:23:33 ericb 1.38.20.1: #i80997# fix some little leaks
-rw-r--r--vcl/aqua/source/app/salinst.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/aqua/source/app/salinst.cxx b/vcl/aqua/source/app/salinst.cxx
index 092c582335ee..2a8ad4b70c71 100644
--- a/vcl/aqua/source/app/salinst.cxx
+++ b/vcl/aqua/source/app/salinst.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: salinst.cxx,v $
*
- * $Revision: 1.38 $
+ * $Revision: 1.39 $
*
- * last change: $Author: hr $ $Date: 2007-08-03 14:00:41 $
+ * last change: $Author: ihi $ $Date: 2007-09-13 16:31:03 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -630,7 +630,8 @@ void AquaSalInstance::GetPrinterQueueInfo( ImplPrnQueueList* pList )
if( PMPrinterIsDefault( aPrinter ) )
maDefaultPrinter = pNewPrinter->maPrinterName;
}
- CFRelease( rPrinterList );
+ if ( rPrinterList )
+ CFRelease( rPrinterList );
}
}
@@ -665,7 +666,8 @@ XubString AquaSalInstance::GetDefaultPrinter()
if( PMPrinterIsDefault( aPrinter ) )
maDefaultPrinter = GetOUString( PMPrinterGetName( aPrinter ) );
}
- CFRelease( rPrinterList );
+ if ( rPrinterList )
+ CFRelease( rPrinterList );
}
}
return maDefaultPrinter;