diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-06-14 14:09:30 +1000 |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2011-06-14 14:13:23 +1000 |
commit | 7b22f02961a97c0fa07127ea3ff26b8435a617b8 (patch) | |
tree | fd96799dab3db175a4c87fa00a3548a61fa0b69e /src/declarative/particles/qsgitemparticle.cpp | |
parent | ba7e87ffe0f1cb356dc31dc2d43640d06309eaa7 (diff) |
Safer cleanup in model/item particle
Diffstat (limited to 'src/declarative/particles/qsgitemparticle.cpp')
-rw-r--r-- | src/declarative/particles/qsgitemparticle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/particles/qsgitemparticle.cpp b/src/declarative/particles/qsgitemparticle.cpp index 498dd90a87..42f0062148 100644 --- a/src/declarative/particles/qsgitemparticle.cpp +++ b/src/declarative/particles/qsgitemparticle.cpp @@ -102,8 +102,8 @@ void QSGItemParticle::tick() mpa->detach();//reparent as well? //TODO: Delete iff we created it m_activeCount--; - m_deletables.removeAll(item); } + m_deletables.clear(); foreach(int pos, m_loadables){ if(m_stasis.contains(m_items[pos])) @@ -133,8 +133,8 @@ void QSGItemParticle::tick() m_items[pos]->setOpacity(0.); m_activeCount++; } - m_loadables.removeAll(pos); } + m_loadables.clear(); } void QSGItemParticle::reload(QSGParticleData* d) |