git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30306
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/thread.h"
#include "wx/utils.h"
#include "wx/ptr_scpd.h"
+#include "wx/prntbase.h"
#if defined(__WXMSW__) && !defined(__PALMOS__)
#include "wx/msw/private.h" // includes windows.h for LOGFONT
// but we want to delete them now
delete wxTopLevelWindows.GetFirst()->GetData();
}
+
+ wxPrintFactory::SetPrintFactory( NULL );
// undo everything we did in Initialize() above
wxBitmap::CleanUpHandlers();
m_bin = data.m_bin;
m_printMode = data.m_printMode;
m_filename = data.m_filename;
-
+
+ // UnRef old m_nativeData
+ m_nativeData->m_ref--;
+ if (m_nativeData->m_ref == 0)
+ delete m_nativeData;
+ // Set Ref new one
m_nativeData = data.GetNativeData();
m_nativeData->m_ref++;