flipswitch effect, slotWindowClosed - heap data still doesn't wipe itself ;-)

remotes/origin/Plasma/5.0
Thomas Lübking 15 years ago
parent 364ce6fbfc
commit 13b420fe7b
  1. 8
      effects/flipswitch/flipswitch.cpp

@ -587,8 +587,12 @@ void FlipSwitchEffect::slotWindowClosed(EffectWindow* w)
{
if (m_selectedWindow == w)
m_selectedWindow = 0;
if (m_active && m_windows.contains(w)) {
m_windows.remove(w);
if (m_active) {
QHash< const EffectWindow*, ItemInfo* >::iterator it = m_windows.find(w);
if (it != m_windows.end()) {
delete *it;
m_windows.erase(it);
}
}
}

Loading…
Cancel
Save