fix presentwindows crash on disabling closebuttons

m_closeWindow "dangles" and protects m_closeView access
in postPaintScreen

REVIEW: 123865
This commit is contained in:
Thomas Lübking 2015-05-20 00:24:01 +02:00
parent 12358f839a
commit ae31aaaa13

View file

@ -135,6 +135,7 @@ void PresentWindowsEffect::reconfigure(ReconfigureFlags)
if (m_doNotCloseWindows) { if (m_doNotCloseWindows) {
delete m_closeView; delete m_closeView;
m_closeView = nullptr; m_closeView = nullptr;
m_closeWindow = nullptr;
} }
m_ignoreMinimized = PresentWindowsConfig::ignoreMinimized(); m_ignoreMinimized = PresentWindowsConfig::ignoreMinimized();
m_accuracy = PresentWindowsConfig::accuracy() * 20; m_accuracy = PresentWindowsConfig::accuracy() * 20;