]> git.saurik.com Git - wxWidgets.git/commitdiff
Very bad wxPrintData destructor... fixed typo.
authorBrian Macy <nobody@localhost>
Wed, 31 Mar 1999 23:01:10 +0000 (23:01 +0000)
committerBrian Macy <nobody@localhost>
Wed, 31 Mar 1999 23:01:10 +0000 (23:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/cmndata.cpp

index 14f157d3fe25e71e0ad00f68f2f63eba211b9d2f..3510acc06fa1ac30f49c2682482851946e36e013 100644 (file)
@@ -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
 }