flipswitch effect, slotWindowClosed - heap data still doesn't wipe itself ;-)
This commit is contained in:
parent
364ce6fbfc
commit
13b420fe7b
1 changed files with 6 additions and 2 deletions
|
@ -587,8 +587,12 @@ void FlipSwitchEffect::slotWindowClosed(EffectWindow* w)
|
||||||
{
|
{
|
||||||
if (m_selectedWindow == w)
|
if (m_selectedWindow == w)
|
||||||
m_selectedWindow = 0;
|
m_selectedWindow = 0;
|
||||||
if (m_active && m_windows.contains(w)) {
|
if (m_active) {
|
||||||
m_windows.remove(w);
|
QHash< const EffectWindow*, ItemInfo* >::iterator it = m_windows.find(w);
|
||||||
|
if (it != m_windows.end()) {
|
||||||
|
delete *it;
|
||||||
|
m_windows.erase(it);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue