secure closeView NULL pointer access

BUG: 293654
This commit is contained in:
Thomas Lübking 2012-02-08 19:17:58 +01:00
parent 6f3b9fae2a
commit 7d17a29826

View file

@ -1803,6 +1803,7 @@ void PresentWindowsEffect::setHighlightedWindow(EffectWindow *w)
if (w == m_highlightedWindow || (w != NULL && !m_motionManager.isManaging(w))) if (w == m_highlightedWindow || (w != NULL && !m_motionManager.isManaging(w)))
return; return;
if (m_closeView)
m_closeView->hide(); m_closeView->hide();
if (m_highlightedWindow) { if (m_highlightedWindow) {
effects->setElevatedWindow(m_highlightedWindow, false); effects->setElevatedWindow(m_highlightedWindow, false);