Windows: Call ReleaseDC for the private's displayContext
Change-Id: Ib5ee1bbe9037ceb13562eadb754c2a5f095b7f87 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
3af55691bc
commit
2e06463712
@ -317,6 +317,8 @@ QWindowsContext::~QWindowsContext()
|
||||
OleUninitialize();
|
||||
|
||||
d->m_screenManager.clearScreens(); // Order: Potentially calls back to the windows.
|
||||
if (d->m_displayContext)
|
||||
ReleaseDC(nullptr, d->m_displayContext);
|
||||
m_instance = nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user