wxClipboard::~wxClipboard() { if ( m_clearOnExit ) { Clear(); } #if wxUSE_OLE_CLIPBOARD wxOleUninitialize(); #endif }
wxClipboard::~wxClipboard() { if ( m_lastDataObject ) { Clear(); } #if wxUSE_OLE_CLIPBOARD wxOleUninitialize(); #endif }
void wxApp::CleanUp() { // all objects pending for deletion must be deleted first, otherwise // UnregisterWindowClasses() call wouldn't succeed (because windows // using the classes being unregistered still exist), so call the base // class method first and only then do our clean up wxAppBase::CleanUp(); wxSetKeyboardHook(false); wxOleUninitialize(); // for an EXE the classes are unregistered when it terminates but DLL may // be loaded several times (load/unload/load) into the same process in // which case the registration will fail after the first time if we don't // unregister the classes now UnregisterWindowClasses(); }