cocos2d/cocos2d-x — pull request #837 by dumganhar (2012-04-13 03:42:39+00:00)
Title: fixed #1158: Fixed a bug in CCParticleSystemQuad.

We need to check whether need to free quads and delete vbo/vao in the destructor.

CCParticleSystemQuad::~CCParticleSystemQuad()
{
if (NULL == m_pBatchNode) // important
{
CC_SAFE_FREE(m_pQuads);
CC_SAFE_FREE(m_pIndices);
glDeleteBuffers(2, &m_pBuffersVBO[0]);
glDeleteVertexArrays(1, &m_uVAOname);
}
}