mirror of https://github.com/axmolengine/axmol.git
issue #1686:synchronize CCParticleSystem.cpp
This commit is contained in:
parent
24e8664700
commit
2b0ff4ec62
|
@ -444,7 +444,9 @@ bool CCParticleSystem::initWithTotalParticles(unsigned int numberOfParticles)
|
|||
|
||||
CCParticleSystem::~CCParticleSystem()
|
||||
{
|
||||
unscheduleUpdate();
|
||||
// Since the scheduler retains the "target (in this case the ParticleSystem)
|
||||
// it is not needed to call "unscheduleUpdate" here. In fact, it will be called in "cleanup"
|
||||
//unscheduleUpdate();
|
||||
CC_SAFE_FREE(m_pParticles);
|
||||
CC_SAFE_RELEASE(m_pTexture);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue