SetPMPrintSettings releases page format instead of print settings <- fix that. b=290214 r=pinkerton sr=smfr a=brendan

This commit is contained in:
joshmoz%gmail.com 2005-06-01 01:31:45 +00:00
parent bbb48ed8cd
commit 558e94cb3f

View File

@ -228,7 +228,7 @@ NS_IMETHODIMP nsPrintSettingsX::SetPMPrintSettings(PMPrintSettings aPMPrintSetti
OSStatus status = ::PMRetain(aPMPrintSettings);
if (status == noErr) {
if (mPrintSettings)
status = ::PMRelease(mPageFormat);
status = ::PMRelease(mPrintSettings);
mPrintSettings = aPMPrintSettings;
}
return (status == noErr) ? NS_OK : NS_ERROR_FAILURE;