diff --git a/src/common/cmndata.cpp b/src/common/cmndata.cpp index 14f157d3fe..3510acc06f 100644 --- a/src/common/cmndata.cpp +++ b/src/common/cmndata.cpp @@ -203,16 +203,9 @@ wxPrintData::wxPrintData(const wxPrintData& printData) wxPrintData::~wxPrintData() { #ifdef __WXMSW__ - HGLOBAL hDevMode = (HGLOBAL) hDevMode; + HGLOBAL hDevMode = (HGLOBAL) m_devMode; if (hDevMode ) GlobalFree(hDevMode); - /* - PRINTDLG *pd = (PRINTDLG *) m_printData; - if ( pd && pd->hDevMode ) - GlobalFree(pd->hDevMode); - if ( pd ) - delete pd; - */ #endif }