From 13b420fe7bd3653a17d5839b69a7a7b60d7395f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Wed, 11 May 2011 21:07:34 +0200 Subject: [PATCH] flipswitch effect, slotWindowClosed - heap data still doesn't wipe itself ;-) --- effects/flipswitch/flipswitch.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/effects/flipswitch/flipswitch.cpp b/effects/flipswitch/flipswitch.cpp index 92cc5d06d5..b68c1c9960 100644 --- a/effects/flipswitch/flipswitch.cpp +++ b/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); + } } }