QWindowsContext::~QWindowsContext() { unregisterWindowClasses(); if (d->m_oleInitializeResult == S_OK || d->m_oleInitializeResult == S_FALSE) OleUninitialize(); d->m_screenManager.clearScreens(); // Order: Potentially calls back to the windows. m_instance = 0; }
QWindowsContext::~QWindowsContext() { #if !defined(QT_NO_TABLETEVENT) && !defined(Q_OS_WINCE) d->m_tabletSupport.reset(); // Destroy internal window before unregistering classes. #endif unregisterWindowClasses(); if (d->m_oleInitializeResult == S_OK || d->m_oleInitializeResult == S_FALSE) OleUninitialize(); d->m_screenManager.clearScreens(); // Order: Potentially calls back to the windows. m_instance = 0; }