git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10659
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if TARGET_CARBON
if (m_macPageFormat != kPMNoPageFormat)
{
#if TARGET_CARBON
if (m_macPageFormat != kPMNoPageFormat)
{
+ #if PM_USE_SESSION_APIS
+ (void)PMRelease(m_macPageFormat);
+ #else
(void)PMDisposePageFormat(m_macPageFormat);
(void)PMDisposePageFormat(m_macPageFormat);
m_macPageFormat = kPMNoPageFormat;
}
if (m_macPrintSettings != kPMNoPrintSettings)
{
m_macPageFormat = kPMNoPageFormat;
}
if (m_macPrintSettings != kPMNoPrintSettings)
{
+ #if PM_USE_SESSION_APIS
+ (void)PMRelease(m_macPrintSettings);
+ #else
(void)PMDisposePrintSettings(m_macPrintSettings);
(void)PMDisposePrintSettings(m_macPrintSettings);
m_macPrintSettings = kPMNoPrintSettings;
}
#else
m_macPrintSettings = kPMNoPrintSettings;
}
#else