diff --git a/src/mac/carbon/dcclient.cpp b/src/mac/carbon/dcclient.cpp index db6a1c5e72..1cfe5dcb30 100644 --- a/src/mac/carbon/dcclient.cpp +++ b/src/mac/carbon/dcclient.cpp @@ -112,7 +112,9 @@ static wxBrush MacGetBackgroundBrush( wxWindow* window ) wxWindowDC::wxWindowDC() { m_window = NULL ; +#if wxMAC_USE_CORE_GRAPHICS m_release = false; +#endif } wxWindowDC::wxWindowDC(wxWindow *window)