From 4cb1706ae52c02214a4540c6c4b6882bed5af416 Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Sat, 23 Jun 2001 19:49:02 +0000 Subject: [PATCH] use Print Manager session APIs if PM_USE_SESSION_APIS is true git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/cmndata.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/cmndata.cpp b/src/common/cmndata.cpp index b039641a07..efad31ecbf 100644 --- a/src/common/cmndata.cpp +++ b/src/common/cmndata.cpp @@ -248,13 +248,21 @@ wxPrintData::~wxPrintData() #if TARGET_CARBON if (m_macPageFormat != kPMNoPageFormat) { + #if PM_USE_SESSION_APIS + (void)PMRelease(m_macPageFormat); + #else (void)PMDisposePageFormat(m_macPageFormat); + #endif m_macPageFormat = kPMNoPageFormat; } if (m_macPrintSettings != kPMNoPrintSettings) { + #if PM_USE_SESSION_APIS + (void)PMRelease(m_macPrintSettings); + #else (void)PMDisposePrintSettings(m_macPrintSettings); + #endif m_macPrintSettings = kPMNoPrintSettings; } #else -- 2.45.2